diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2007-11-04 20:20:23 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2007-11-19 22:09:16 +0100 |
commit | 3ff6eb4a2fe5757cbe7c5d57c8eb60ab0775f2f0 (patch) | |
tree | 31dfb08578e5fe20ccdfa15bd94aaa784a872e3a /drivers | |
parent | [WATCHDOG] at32ap700x_wdt: add support for boot status and add fix for silico... (diff) | |
download | linux-3ff6eb4a2fe5757cbe7c5d57c8eb60ab0775f2f0.tar.xz linux-3ff6eb4a2fe5757cbe7c5d57c8eb60ab0775f2f0.zip |
[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: Samuel Tardieu <sam@rfc1149.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/watchdog/w83697hf_wdt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/watchdog/w83697hf_wdt.c b/drivers/watchdog/w83697hf_wdt.c index c622a0e6c9ae..6ea125eabeaa 100644 --- a/drivers/watchdog/w83697hf_wdt.c +++ b/drivers/watchdog/w83697hf_wdt.c @@ -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()) |