mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
rtc-m41t80: use nonseekable_open()
Use nonseekable_open() for this since seeking is not supported anyway. Signed-off-by: Jan Blunck <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b627dbce6b
commit
09eeb1f5f4
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue