diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 17:16:10 (GMT) |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 20:05:58 (GMT) |
commit | 600bf8140c22e473ef0806ae45214aaaf53e0da3 (patch) | |
tree | 1dddfece76db611c38d59ba965b16f7ba6f44c0a /drivers/char | |
parent | 28fbbf491368c9491461ca492e13862da1b49180 (diff) | |
download | linux-600bf8140c22e473ef0806ae45214aaaf53e0da3.tar.xz |
lcd: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/lcd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/lcd.c b/drivers/char/lcd.c index 4fe9206..1c29b20 100644 --- a/drivers/char/lcd.c +++ b/drivers/char/lcd.c @@ -20,6 +20,7 @@ #include <linux/mc146818rtc.h> #include <linux/netdevice.h> #include <linux/sched.h> +#include <linux/smp_lock.h> #include <linux/delay.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) { + cycle_kernel_lock(); + if (!lcd_present) return -ENXIO; else |