mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
watchdog: uniphier: 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> Acked-by: Keiji Hayashibara <hayashibara.keiji@socionext.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
321390d9bd
commit
6308939617
1 changed files with 2 additions and 3 deletions
|
@ -212,11 +212,10 @@ static int uniphier_wdt_probe(struct platform_device *pdev)
|
|||
wdev->wdt_dev.ops = &uniphier_wdt_ops;
|
||||
wdev->wdt_dev.max_timeout = WDT_PERIOD_MAX;
|
||||
wdev->wdt_dev.min_timeout = WDT_PERIOD_MIN;
|
||||
wdev->wdt_dev.timeout = WDT_DEFAULT_TIMEOUT;
|
||||
wdev->wdt_dev.parent = dev;
|
||||
|
||||
if (watchdog_init_timeout(&wdev->wdt_dev, timeout, dev) < 0) {
|
||||
wdev->wdt_dev.timeout = WDT_DEFAULT_TIMEOUT;
|
||||
}
|
||||
watchdog_init_timeout(&wdev->wdt_dev, timeout, dev);
|
||||
watchdog_set_nowayout(&wdev->wdt_dev, nowayout);
|
||||
watchdog_stop_on_reboot(&wdev->wdt_dev);
|
||||
|
||||
|
|
Loading…
Reference in a new issue