Commit 600bf814 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet

lcd: BKL pushdown

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 28fbbf49
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment