Commit 09eeb1f5 authored by Jan Blunck's avatar Jan Blunck Committed by Linus Torvalds
Browse files

rtc-m41t80: use nonseekable_open()

Use nonseekable_open() for this since seeking is not supported anyway.
Signed-off-by: default avatarJan Blunck <>
Cc: Frederic Weisbecker <>
Cc: Paul Gortmaker <>
Cc: Alessandro Zummo <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent b627dbce
......@@ -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) {
return 1;
......@@ -707,7 +703,7 @@ static int wdt_open(struct inode *inode, struct file *file)
wdt_is_open = 1;
return 0;
return nonseekable_open(inode, file);
return -ENODEV;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment