diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2018-11-20 09:54:45 -0500 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2018-12-09 09:03:27 -0500 |
commit | 06f8f2ca0585ea0c8df7e6c65659b1f679b4254b (patch) | |
tree | 8e1e25ec9fc313a96ceb61415a4f23884a39942c | |
parent | e990e12741877e9bfac402ca468f4007a75f6e2a (diff) |
watchdog: cpwd: add of_node_put()
use of_node_put() to release the refcount.
Signed-off-by: Yangtao Li <tiny.windzz@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>
-rw-r--r-- | drivers/watchdog/cpwd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index aee0b25cf10d..32156e199c51 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog/cpwd.c | |||
@@ -570,6 +570,8 @@ static int cpwd_probe(struct platform_device *op) | |||
570 | if (str_prop) | 570 | if (str_prop) |
571 | p->timeout = simple_strtoul(str_prop, NULL, 10); | 571 | p->timeout = simple_strtoul(str_prop, NULL, 10); |
572 | 572 | ||
573 | of_node_put(options); | ||
574 | |||
573 | /* CP1400s seem to have broken PLD implementations-- the | 575 | /* CP1400s seem to have broken PLD implementations-- the |
574 | * interrupt_mask register cannot be written, so no timer | 576 | * interrupt_mask register cannot be written, so no timer |
575 | * interrupts can be masked within the PLD. | 577 | * interrupts can be masked within the PLD. |