]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: sama5d4: fix timeout-sec usage
authorRomain Izard <romain.izard.pro@gmail.com>
Fri, 14 Sep 2018 10:13:38 +0000 (12:13 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 2 Oct 2018 11:32:26 +0000 (13:32 +0200)
commitb996ca747e77f91fec1ba4c7bfb4d097654103db
tree0e0975c7c5ab7f6954ab98b949a715a7db885935
parentb05b188bbaee4c9ec902c109c125c0fd6c22bc98
watchdog: sama5d4: fix timeout-sec usage

When using watchdog_init_timeout to update the default timeout value,
an error means that there is no "timeout-sec" in the relevant device
tree node.

This should not prevent binding of the driver to the device.

Fixes: 46b17edc9312 ("watchdog: sama5d4: make use of timeout-secs provided in devicetree")
Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Reviewed-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@linux-watchdog.org>
drivers/watchdog/sama5d4_wdt.c