Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cb1c3e8 authored by Stanislav Kholmanskikh's avatar Stanislav Kholmanskikh Committed by Wim Van Sebroeck
Browse files

watchdog: w83697hf_wdt: return ENODEV if no device was found



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: default avatarStanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent d158fc7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -402,7 +402,7 @@ static int __init wdt_init(void)


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