diff options
author | Jan Blunck <jblunck@suse.de> | 2010-05-26 14:44:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 09:12:56 -0700 |
commit | 09eeb1f5f4d9b52ab57820160dea6027bbea82a3 (patch) | |
tree | 877488d8daacd6b5e5f56c1ddde9f03ca7e79ac0 /drivers/rtc | |
parent | b627dbce6b5524c7c9032738bb60538999f45d41 (diff) | |
download | kernel_samsung_crespo-09eeb1f5f4d9b52ab57820160dea6027bbea82a3.zip kernel_samsung_crespo-09eeb1f5f4d9b52ab57820160dea6027bbea82a3.tar.gz kernel_samsung_crespo-09eeb1f5f4d9b52ab57820160dea6027bbea82a3.tar.bz2 |
rtc-m41t80: use nonseekable_open()
Use nonseekable_open() for this since seeking is not supported anyway.
Signed-off-by: Jan Blunck <jblunck@suse.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-m41t80.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 038095d..6dc4e62 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c @@ -595,10 +595,6 @@ static void wdt_disable(void) static ssize_t wdt_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; - */ if (count) { wdt_ping(); return 1; @@ -707,7 +703,7 @@ static int wdt_open(struct inode *inode, struct file *file) */ wdt_is_open = 1; unlock_kernel(); - return 0; + return nonseekable_open(inode, file); } return -ENODEV; } |