X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fwatchdog%2Falim7101_wdt.c;h=c137cd3bc6b31476f405a78cc0251edf066b16ca;hb=3e3ff47c8527c5ba0be4e9f358d49e4b076bd6ef;hp=5ff6a6e4a4f7df315de1c9ddca850acbdd85729d;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/char/watchdog/alim7101_wdt.c b/drivers/char/watchdog/alim7101_wdt.c index 5ff6a6e4a..c137cd3bc 100644 --- a/drivers/char/watchdog/alim7101_wdt.c +++ b/drivers/char/watchdog/alim7101_wdt.c @@ -150,6 +150,10 @@ static void wdt_keepalive(void) static ssize_t fop_write(struct file * file, const char __user * buf, size_t count, loff_t * ppos) { + /* We can't seek */ + if(ppos != &file->f_pos) + return -ESPIPE; + /* See if we got the magic character 'V' and reload the timer */ if(count) { if (!nowayout) { @@ -181,7 +185,7 @@ static int fop_open(struct inode * inode, struct file * file) return -EBUSY; /* Good, fire up the show */ wdt_startup(); - return nonseekable_open(inode, file); + return 0; } static int fop_close(struct inode * inode, struct file * file)