[PATCH] watchdog: rti_wdt: Allow timeout config with timeout-sec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently rti_wdt does not allow timeout to be configured
via DT property timeout-sec, so fix watchdog_init_timeout
to be able to use timeout-sec.

Signed-off-by: Judith Mendez <jm@xxxxxx>
---
 drivers/watchdog/rti_wdt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/watchdog/rti_wdt.c b/drivers/watchdog/rti_wdt.c
index 8e1be7ba01039..7260c67e60a25 100644
--- a/drivers/watchdog/rti_wdt.c
+++ b/drivers/watchdog/rti_wdt.c
@@ -332,7 +332,8 @@ static int rti_wdt_probe(struct platform_device *pdev)
 		memunmap(vaddr);
 	}
 
-	watchdog_init_timeout(wdd, heartbeat, dev);
+	wdd->timeout = heartbeat;
+	watchdog_init_timeout(wdd, 0, dev);
 
 	ret = watchdog_register_device(wdd);
 	if (ret) {

base-commit: 860bbe8e618fd62446309e286ab4a83d38201c0a
-- 
2.46.0





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux