Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ff6eb4a authored by Samuel Tardieu's avatar Samuel Tardieu Committed by Wim Van Sebroeck
Browse files

[WATCHDOG] Stop looking for device as soon as one is found



If no address is given for the W83697HF/HG watchdog IO port, stop looping
through possible locations when a watchdog device has been found.

Signed-off-by: default avatarSamuel Tardieu <sam@rfc1149.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent bb133450
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -382,8 +382,10 @@ wdt_init(void)
		/* we will autodetect the W83697HF/HG watchdog */
		for (i = 0; ((!found) && (w83697hf_ioports[i] != 0)); i++) {
			wdt_io = w83697hf_ioports[i];
			if (!w83697hf_check_wdt())
			if (!w83697hf_check_wdt()) {
				found++;
				break;
			}
		}
	} else {
		if (!w83697hf_check_wdt())