diff options
author | Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> | 2014-01-27 11:04:33 +0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2014-02-21 20:36:46 +0100 |
commit | 0cb1c3e853e0d0f996f4e11863407bf31e6b7343 (patch) | |
tree | 3f0ce826f27807c5085a39c3166f1c2e399c1d7c /drivers/watchdog | |
parent | d158fc7f36a25e19791d25a55da5623399a2644f (diff) | |
download | blackbird-op-linux-0cb1c3e853e0d0f996f4e11863407bf31e6b7343.tar.gz blackbird-op-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 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/w83697hf_wdt.c | 2 |
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; } |