[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181120132359.19799-1-tiny.windzz@gmail.com>
Date: Tue, 20 Nov 2018 08:23:59 -0500
From: Yangtao Li <tiny.windzz@...il.com>
To: wim@...ux-watchdog.org, linux@...ck-us.net
Cc: linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org,
Yangtao Li <tiny.windzz@...il.com>
Subject: [PATCH] watchdog: cpwd: add of_node_put()
use of_node_put() to release the refcount.
Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
---
drivers/watchdog/cpwd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c
index aee0b25cf10d..d3a81642ada5 100644
--- a/drivers/watchdog/cpwd.c
+++ b/drivers/watchdog/cpwd.c
@@ -617,6 +617,7 @@ static int cpwd_probe(struct platform_device *op)
platform_set_drvdata(op, p);
cpwd_device = p;
+ of_node_put(options);
return 0;
out_unregister:
--
2.17.0
Powered by blists - more mailing lists