watchdog: cadence_wdt: Fix issue with timeout-sec dt property
Unable to change timeout value via DT because watchdog_init_timeout()
code which reads from DT is not called at all. Because
watchdog_init_timeout() gives the priority for the module parameter value.
If the value is not valid then only it will read from the Device tree.
But currenly in the driver module parameter default value is fixed to 10s
means watchdog_init_timeout() always use the module parameter timeout
value. It will always ignore the timeout-sec dt property value.
This patch fix this issue.
Signed-off-by: Nava kishore Manne <navam@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>