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.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
drivers
/
char
/
watchdog
/
wdt285.c
diff --git
a/drivers/char/watchdog/wdt285.c
b/drivers/char/watchdog/wdt285.c
index
b61d9e1
..
d3fced3
100644
(file)
--- a/
drivers/char/watchdog/wdt285.c
+++ b/
drivers/char/watchdog/wdt285.c
@@
-97,6
+97,7
@@
static int watchdog_open(struct inode *inode, struct file *file)
ret = 0;
#endif
ret = 0;
#endif
+ nonseekable_open(inode, file);
return ret;
}
return ret;
}
@@
-117,10
+118,6
@@
static int watchdog_release(struct inode *inode, struct file *file)
static ssize_t
watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos)
{
static ssize_t
watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos)
{
- /* Can't seek (pwrite) on this device */
- if (ppos != &file->f_pos)
- return -ESPIPE;
-
/*
* Refresh the timer.
*/
/*
* Refresh the timer.
*/