This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / char / watchdog / alim1535_wdt.c
index 35dcbf8..f093a69 100644 (file)
@@ -141,6 +141,10 @@ static int ali_settimer(int t)
 static ssize_t ali_write(struct file *file, const char __user *data,
                              size_t len, loff_t * ppos)
 {
+       /*  Can't seek (pwrite) on this device  */
+       if (ppos != &file->f_pos)
+               return -ESPIPE;
+
        /* See if we got the magic character 'V' and reload the timer */
        if (len) {
                if (!nowayout) {
@@ -262,7 +266,7 @@ static int ali_open(struct inode *inode, struct file *file)
 
        /* Activate */
        ali_start();
-       return nonseekable_open(inode, file);
+       return 0;
 }
 
 /*