drivers/sbus/char: add of_node_put()
PATCH 1/1 drivers/sbus/char: add of_node_put()
use of_node_put() to release the refcount.
Signed-off-by Yangtao Li <[email protected]>
--- drivers/sbus/char/envctrl.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/sbus/char/envctrl.c +2 -0
@@ -910,8 +910,10 @@ static void envctrl_init_i2c_child(struct device_node *dp,for (len =0 ; len <PCF8584_MAX_CHANNELS ; ++len) { pchild->mon_type[len] =ENVCTRL_NOMON ; } +of_node_put (root_node);return ; } +of_node_put (root_node); }/* Get the monitor channels. */
Signature · 1 line
2.17.0
From: Yangtao Li <[email protected]>
Date: Tue, 20 Nov 2018 08:38:26 -0500
Quoted 3 lines
use
of_node_put()to release the refcount.Signed-off-by Yangtao Li <[email protected]>
Applied.