git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
char
/
watchdog
/
cpu5wdt.c
diff --git
a/drivers/char/watchdog/cpu5wdt.c
b/drivers/char/watchdog/cpu5wdt.c
index
7e7b653
..
2865dac
100644
(file)
--- a/
drivers/char/watchdog/cpu5wdt.c
+++ b/
drivers/char/watchdog/cpu5wdt.c
@@
-134,7
+134,7
@@
static int cpu5wdt_open(struct inode *inode, struct file *file)
if ( test_and_set_bit(0, &cpu5wdt_device.inuse) )
return -EBUSY;
if ( test_and_set_bit(0, &cpu5wdt_device.inuse) )
return -EBUSY;
- return
0
;
+ return
nonseekable_open(inode, file)
;
}
static int cpu5wdt_release(struct inode *inode, struct file *file)
}
static int cpu5wdt_release(struct inode *inode, struct file *file)
@@
-198,6
+198,7
@@
static ssize_t cpu5wdt_write(struct file *file, const char __user *buf, size_t c
static struct file_operations cpu5wdt_fops = {
.owner = THIS_MODULE,
static struct file_operations cpu5wdt_fops = {
.owner = THIS_MODULE,
+ .llseek = no_llseek,
.ioctl = cpu5wdt_ioctl,
.open = cpu5wdt_open,
.write = cpu5wdt_write,
.ioctl = cpu5wdt_ioctl,
.open = cpu5wdt_open,
.write = cpu5wdt_write,