提交 600bf814 编写于 作者: A Arnd Bergmann 提交者: Jonathan Corbet

lcd: BKL pushdown

Signed-off-by: NArnd Bergmann <arnd@arndb.de>
上级 28fbbf49
...@@ -20,6 +20,7 @@ ...@@ -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, ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册