From: Stanislav Kholmanskikh Date: Mon, 27 Jan 2014 07:04:33 +0000 (+0400) Subject: watchdog: w83697hf_wdt: return ENODEV if no device was found X-Git-Tag: v6.6-pxa1908~23757^2 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0cb1c3e853e0d0f996f4e11863407bf31e6b7343;p=linux.git 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: Stanislav Kholmanskikh Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/w83697hf_wdt.c b/drivers/watchdog/w83697hf_wdt.c index aaf2995d37f4..68b45fc9ba6a 100644 --- a/drivers/watchdog/w83697hf_wdt.c +++ b/drivers/watchdog/w83697hf_wdt.c @@ -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; }