All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog: w83697hf_wdt: return ENODEV if no device was found
@ 2014-01-27  7:04 Stanislav Kholmanskikh
  2014-01-27 16:33 ` Guenter Roeck
  0 siblings, 1 reply; 5+ messages in thread
From: Stanislav Kholmanskikh @ 2014-01-27  7:04 UTC (permalink / raw)
  To: linux-watchdog; +Cc: vasily.isaenko

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>
---
 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 aaf2995..68b45fc 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;
 	}
 
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-06  7:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27  7:04 [PATCH] watchdog: w83697hf_wdt: return ENODEV if no device was found Stanislav Kholmanskikh
2014-01-27 16:33 ` Guenter Roeck
2014-02-06  6:25   ` Stanislav Kholmanskikh
2014-02-06  7:25     ` Guenter Roeck
2014-02-06  7:49       ` Stanislav Kholmanskikh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.