From: Marcelo Tosatti drivers/char/watchdog/mpcore_wdt.c write function contains a check for (ppos != &file->f_pos). Such check used to make sense when a pointer to file->f_pos was handed by vfs_write(), not a copy of it as it stands now. Has been broken since then... Don't have a device to test - does it work at all? mpc8xx_wdt.c is similarly broken (patch will be sent separately). Signed-off-by: Marcelo Tosatti Cc: Alan Cox Cc: Wim Van Sebroeck Signed-off-by: Andrew Morton --- drivers/char/watchdog/mpcore_wdt.c | 4 ---- 1 files changed, 4 deletions(-) diff -puN drivers/char/watchdog/mpcore_wdt.c~mpcore_wdtc-bogus-fpos-check drivers/char/watchdog/mpcore_wdt.c --- devel/drivers/char/watchdog/mpcore_wdt.c~mpcore_wdtc-bogus-fpos-check 2005-11-18 18:43:01.000000000 -0800 +++ devel-akpm/drivers/char/watchdog/mpcore_wdt.c 2005-11-18 18:43:01.000000000 -0800 @@ -180,10 +180,6 @@ static ssize_t mpcore_wdt_write(struct f { struct mpcore_wdt *wdt = file->private_data; - /* Can't seek (pwrite) on this device */ - if (ppos != &file->f_pos) - return -ESPIPE; - /* * Refresh the timer. */ _