Skip to content

Commit

Permalink
lcd: BKL pushdown
Browse files Browse the repository at this point in the history
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent 28fbbf4 commit 600bf81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/char/lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 600bf81

Please sign in to comment.