Browse Source

sbus: char: add of_node_put()

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>
Yangtao Li 6 years ago
parent
commit
87d81a23e2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/sbus/char/display7seg.c

+ 1 - 0
drivers/sbus/char/display7seg.c

@@ -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;