Skip to content

Commit

Permalink
watchdog: w83697hf_wdt: return ENODEV if no device was found
Browse files Browse the repository at this point in the history
Most WDT driver modules return ENODEV during modprobe if
no valid device was found, but w83697hf_wdt returns EIO.

Let w83697hf_wdt return ENODEV.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Stanislav Kholmanskikh authored and Wim Van Sebroeck committed Feb 21, 2014
1 parent d158fc7 commit 0cb1c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/w83697hf_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static int __init wdt_init(void)

if (!found) {
pr_err("No W83697HF/HG could be found\n");
ret = -EIO;
ret = -ENODEV;
goto out;
}

Expand Down

0 comments on commit 0cb1c3e

Please sign in to comment.