diff mbox series

sbus: char: add of_node_put()

Message ID 20181120133040.19889-1-tiny.windzz@gmail.com
State Accepted
Delegated to: David Miller
Headers show
Series sbus: char: add of_node_put() | expand

Commit Message

Frank Lee Nov. 20, 2018, 1:30 p.m. UTC
use of_node_put() to release the refcount.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
 drivers/sbus/char/display7seg.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Miller Dec. 3, 2018, 4:55 a.m. UTC | #1
From: Yangtao Li <tiny.windzz@gmail.com>
Date: Tue, 20 Nov 2018 08:30:40 -0500

> use of_node_put() to release the refcount.
> 
> Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>

Applied.
diff mbox series

Patch

diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c
index 5c8ed7350a04..a36e4cf1841d 100644
--- a/drivers/sbus/char/display7seg.c
+++ b/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;