summaryrefslogtreecommitdiff
path: root/drivers/watchdog/ts4800_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/ts4800_wdt.c')
-rw-r--r--drivers/watchdog/ts4800_wdt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/ts4800_wdt.c b/drivers/watchdog/ts4800_wdt.c
index 2b8de8602b67..89843b16b04a 100644
--- a/drivers/watchdog/ts4800_wdt.c
+++ b/drivers/watchdog/ts4800_wdt.c
@@ -135,6 +135,7 @@ static int ts4800_wdt_probe(struct platform_device *pdev)
/* set regmap and offset to know where to write */
wdt->feed_offset = reg;
wdt->regmap = syscon_node_to_regmap(syscon_np);
+ of_node_put(syscon_np);
if (IS_ERR(wdt->regmap)) {
dev_err(&pdev->dev, "cannot get parent's regmap\n");
return PTR_ERR(wdt->regmap);