]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: cadence_wdt: fix timeout setting
authorTomas Melin <tomas.melin@vaisala.com>
Mon, 20 Mar 2017 07:29:31 +0000 (09:29 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 18 May 2017 16:51:38 +0000 (18:51 +0200)
commita9e95fdabbb1693db5c7ed63c48de456b6b5aa77
tree6c869456cfaff0df49219a7f7f95547946efef25
parent3cba15acf819c8547722b273da80bcfc11ec3033
watchdog: cadence_wdt: fix timeout setting

wdt_timeout must not be initialized to CDNS_WDT_DEFAULT_TIMEOUT in
order to allow the value to be overriddden by a device tree setting.

This way, the default timeout value will be used only in case module_param
has not been set, or device tree timeout-sec has not been defined.

Signed-off-by: Tomas Melin <tomas.melin@vaisala.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/cadence_wdt.c