Skip to contentSkip to conversation

sbus: char: add of_node_put()

PATCH Applied Yangtao Li 2 participants 2 messages Nov 20, 2018 – Dec 3, 2018 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

PATCH 1/1 sbus: char: add of_node_put()

use of_node_put() to release the refcount.

---
 drivers/sbus/char/display7seg.c | 1 +
 1 file changed, 1 insertion(+)
drivers/sbus/char/display7seg.c +1 -0
index 5c8ed7350a04..a36e4cf1841d 100644
@@ -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;
Signature · 1 line
2.17.0