Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100343
b: refs/heads/master
c: 080c222
h: refs/heads/master
i:
  100341: 1813bf2
  100339: 01ffd91
  100335: 66fd87d
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent 782c7cc commit 8e27231
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ccef46320ecd52c4d20c8aad592599df76bb7a1
refs/heads/master: 080c2226474fa3060fadce9a2341004f477aadb3
9 changes: 8 additions & 1 deletion trunk/drivers/char/ds1620.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <linux/proc_fs.h>
#include <linux/capability.h>
#include <linux/init.h>
#include <linux/smp_lock.h>

#include <asm/hardware.h>
#include <asm/mach-types.h>
Expand Down Expand Up @@ -208,6 +209,12 @@ static void ds1620_read_state(struct therm *therm)
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
ds1620_read(struct file *file, char __user *buf, size_t count, loff_t *ptr)
{
Expand Down Expand Up @@ -336,7 +343,7 @@ static struct proc_dir_entry *proc_therm_ds1620;

static const struct file_operations ds1620_fops = {
.owner = THIS_MODULE,
.open = nonseekable_open,
.open = ds1620_open,
.read = ds1620_read,
.ioctl = ds1620_ioctl,
};
Expand Down

0 comments on commit 8e27231

Please sign in to comment.