watchdog: gpio: change order for setting default timeout
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Sat, 10 Feb 2018 20:36:22 +0000 (21:36 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 3 Mar 2018 16:04:15 +0000 (17:04 +0100)
commit65adfa22f5fc3542fc6776275f08c52975b82217
treef3aaf3c83417141ba1c593068772ab45ffe4800e
parent1253730ef6142a095ca39a19fb5d300ca03a4439
watchdog: gpio: change order for setting default timeout

watchdog_init_timeout() will preserve wdd->timeout value if
no parameter nor timeout-secs dt property is set.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/gpio_wdt.c