summaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/booke_wdt.c
diff options
context:
space:
mode:
authorWim Van Sebroeck2007-07-20 22:41:37 +0200
committerWim Van Sebroeck2007-07-23 19:25:52 +0200
commitec9505a7ecadc0ab8f8e3c4c5fa900d57467e391 (patch)
treeb950c33158ff3742d3c2ee33a5752bd23dfa0294 /drivers/char/watchdog/booke_wdt.c
parent[WATCHDOG] davinci_wdt clean-up (diff)
downloadkernel-qcow2-linux-ec9505a7ecadc0ab8f8e3c4c5fa900d57467e391.tar.gz
kernel-qcow2-linux-ec9505a7ecadc0ab8f8e3c4c5fa900d57467e391.tar.xz
kernel-qcow2-linux-ec9505a7ecadc0ab8f8e3c4c5fa900d57467e391.zip
[WATCHDOG] VFS clean-up
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>
Diffstat (limited to 'drivers/char/watchdog/booke_wdt.c')
-rw-r--r--drivers/char/watchdog/booke_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/booke_wdt.c b/drivers/char/watchdog/booke_wdt.c
index 0f5c77ddd39d..d362f5bf658a 100644
--- a/drivers/char/watchdog/booke_wdt.c
+++ b/drivers/char/watchdog/booke_wdt.c
@@ -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 = {