Преглед изворни кода

Merge git://www.linux-watchdog.org/linux-watchdog

Pull watchdog fix from Wim Van Sebroeck:
 "It corrects the error code when no device was found for w83697hf_wdt"

* git://www.linux-watchdog.org/linux-watchdog:
  watchdog: w83697hf_wdt: return ENODEV if no device was found
Linus Torvalds пре 11 година
родитељ
комит
0a4e836a60
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/watchdog/w83697hf_wdt.c

+ 1 - 1
drivers/watchdog/w83697hf_wdt.c

@@ -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;
 	}
 	}