OSDN Git Service

watchdog: cpwd: add of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Tue, 20 Nov 2018 14:54:45 +0000 (09:54 -0500)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 9 Dec 2018 14:03:27 +0000 (15:03 +0100)
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>
drivers/watchdog/cpwd.c

index aee0b25..32156e1 100644 (file)
@@ -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.