lcd: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2008-05-20 19:16:10 +02:00 committed by Jonathan Corbet
parent 28fbbf4913
commit 600bf8140c
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <linux/mc146818rtc.h> #include <linux/mc146818rtc.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <asm/io.h> #include <asm/io.h>
@ -414,6 +415,8 @@ static int lcd_ioctl(struct inode *inode, struct file *file,
static int lcd_open(struct inode *inode, struct file *file) static int lcd_open(struct inode *inode, struct file *file)
{ {
cycle_kernel_lock();
if (!lcd_present) if (!lcd_present)
return -ENXIO; return -ENXIO;
else else