]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[WATCHDOG] VFS clean-up
authorWim Van Sebroeck <wim@iguana.be>
Fri, 20 Jul 2007 20:41:37 +0000 (20:41 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 23 Jul 2007 17:25:52 +0000 (17:25 +0000)
All watchdog device drivers are VFSs (Virtual File Systems).
We thus return a nonseekable_open(inode, file) when we open the VFS.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/char/watchdog/booke_wdt.c
drivers/char/watchdog/mpc8xx_wdt.c
drivers/char/watchdog/omap_wdt.c

index 0f5c77ddd39dedd5af2fdabe8bddfe5f81f14dc4..d362f5bf658ada49503343779c47de4ef270ddd6 100644 (file)
@@ -144,7 +144,7 @@ static int booke_wdt_open (struct inode *inode, struct file *file)
                                booke_wdt_period);
        }
 
-       return 0;
+       return nonseekable_open(inode, file);
 }
 
 static const struct file_operations booke_wdt_fops = {
index 8aaed10dd4999e66928168cdb781df1fda97fad2..85b5734403a5dbc5c2d3e8c026100aea79825f60 100644 (file)
@@ -57,7 +57,7 @@ static int mpc8xx_wdt_open(struct inode *inode, struct file *file)
        m8xx_wdt_reset();
        mpc8xx_wdt_handler_disable();
 
-       return 0;
+       return nonseekable_open(inode, file);
 }
 
 static int mpc8xx_wdt_release(struct inode *inode, struct file *file)
index b36fa8de2131813940aee9151c84729e16705a76..3a0e0613424ad1605311b7007d84b54e3eda61f4 100644 (file)
@@ -142,7 +142,7 @@ static int omap_wdt_open(struct inode *inode, struct file *file)
 
        omap_wdt_set_timeout();
        omap_wdt_enable();
-       return 0;
+       return nonseekable_open(inode, file);
 }
 
 static int omap_wdt_release(struct inode *inode, struct file *file)