Skip to content

Commit

Permalink
[WATCHDOG] VFS clean-up
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wim Van Sebroeck committed Jul 23, 2007
1 parent f1a08cc commit ec9505a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/char/watchdog/booke_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/watchdog/mpc8xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec9505a

Please sign in to comment.