Commit 080c2226 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet

ds1620: BKL pushdown

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 7ccef463
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/smp_lock.h>
#include <asm/hardware.h> #include <asm/hardware.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -208,6 +209,12 @@ static void ds1620_read_state(struct therm *therm) ...@@ -208,6 +209,12 @@ static void ds1620_read_state(struct therm *therm)
therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9)); therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9));
} }
static int ds1620_open(struct inode *inode, struct file *file)
{
cycle_kernel_lock();
return nonseekable_open(inode, file);
}
static ssize_t static ssize_t
ds1620_read(struct file *file, char __user *buf, size_t count, loff_t *ptr) ds1620_read(struct file *file, char __user *buf, size_t count, loff_t *ptr)
{ {
...@@ -336,7 +343,7 @@ static struct proc_dir_entry *proc_therm_ds1620; ...@@ -336,7 +343,7 @@ static struct proc_dir_entry *proc_therm_ds1620;
static const struct file_operations ds1620_fops = { static const struct file_operations ds1620_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = nonseekable_open, .open = ds1620_open,
.read = ds1620_read, .read = ds1620_read,
.ioctl = ds1620_ioctl, .ioctl = ds1620_ioctl,
}; };
......
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