enable floppy module generation for boot cd
[linux-2.6.git] / drivers / char / watchdog / wafer5823wdt.c
index 26e232b..abb0bea 100644 (file)
@@ -97,10 +97,6 @@ wafwdt_stop(void)
 
 static ssize_t wafwdt_write(struct file *file, const char __user *buf, size_t count, 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 (count) {
                if (!nowayout) {
@@ -197,7 +193,7 @@ static int wafwdt_open(struct inode *inode, struct file *file)
         *      Activate
         */
        wafwdt_start();
-       return 0;
+       return nonseekable_open(inode, file);
 }
 
 static int