From: Yangtao Li Date: Tue, 20 Nov 2018 14:54:45 +0000 (-0500) Subject: watchdog: cpwd: add of_node_put() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=06f8f2ca0585ea0c8df7e6c65659b1f679b4254b;p=linux.git watchdog: cpwd: add of_node_put() use of_node_put() to release the refcount. Signed-off-by: Yangtao Li Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index aee0b25cf10d9..32156e199c512 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog/cpwd.c @@ -570,6 +570,8 @@ static int cpwd_probe(struct platform_device *op) if (str_prop) p->timeout = simple_strtoul(str_prop, NULL, 10); + of_node_put(options); + /* CP1400s seem to have broken PLD implementations-- the * interrupt_mask register cannot be written, so no timer * interrupts can be masked within the PLD.