git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtc-m41t80: use nonseekable_open()
[pandora-kernel.git]
/
drivers
/
rtc
/
rtc-m41t80.c
diff --git
a/drivers/rtc/rtc-m41t80.c
b/drivers/rtc/rtc-m41t80.c
index
038095d
..
6dc4e62
100644
(file)
--- 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)
{
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;
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();
*/
wdt_is_open = 1;
unlock_kernel();
- return
0
;
+ return
nonseekable_open(inode, file)
;
}
return -ENODEV;
}
}
return -ENODEV;
}