sbus: char: add of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Tue, 20 Nov 2018 13:30:40 +0000 (08:30 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 04:55:22 +0000 (20:55 -0800)
use of_node_put() to release the refcount.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/display7seg.c

index 5c8ed73..a36e4cf 100644 (file)
@@ -220,6 +220,7 @@ static int d7s_probe(struct platform_device *op)
        dev_set_drvdata(&op->dev, p);
        d7s_device = p;
        err = 0;
+       of_node_put(opts);
 
 out:
        return err;