summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/w83697hf_wdt.c
diff options
context:
space:
mode:
authorStanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>2014-01-27 08:04:33 +0100
committerWim Van Sebroeck <wim@iguana.be>2014-02-21 20:36:46 +0100
commit0cb1c3e853e0d0f996f4e11863407bf31e6b7343 (patch)
tree3f0ce826f27807c5085a39c3166f1c2e399c1d7c /drivers/watchdog/w83697hf_wdt.c
parentMerge tag 'pci-v3.14-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
downloadlinux-0cb1c3e853e0d0f996f4e11863407bf31e6b7343.tar.xz
linux-0cb1c3e853e0d0f996f4e11863407bf31e6b7343.zip
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 <stanislav.kholmanskikh@oracle.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to '')
-rw-r--r--drivers/watchdog/w83697hf_wdt.c2
1 files changed, 1 insertions, 1 deletions
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;
}