mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
watchdog: cadence_wdt: still probe if user supplied timeout is invalid
We have a default timeout value in the driver which we will fall back to if the user supplied values are out of bounce. Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
5429e3a579
commit
c7d30d42ff
1 changed files with 1 additions and 4 deletions
|
|
@ -328,10 +328,7 @@ static int cdns_wdt_probe(struct platform_device *pdev)
|
|||
/* Initialize the members of cdns_wdt structure */
|
||||
cdns_wdt_device->parent = dev;
|
||||
|
||||
ret = watchdog_init_timeout(cdns_wdt_device, wdt_timeout, dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
watchdog_init_timeout(cdns_wdt_device, wdt_timeout, dev);
|
||||
watchdog_set_nowayout(cdns_wdt_device, nowayout);
|
||||
watchdog_stop_on_reboot(cdns_wdt_device);
|
||||
watchdog_set_drvdata(cdns_wdt_device, wdt);
|
||||
|
|
|
|||
Loading…
Reference in a new issue