From: Yangtao Li Date: Tue, 20 Nov 2018 13:38:26 +0000 (-0500) Subject: drivers/sbus/char: add of_node_put() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100;p=openwrt%2Fstaging%2Fblogic.git drivers/sbus/char: add of_node_put() use of_node_put() to release the refcount. Signed-off-by: Yangtao Li Signed-off-by: David S. Miller --- diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c index 56e962a01493..b8481927bfe4 100644 --- a/drivers/sbus/char/envctrl.c +++ b/drivers/sbus/char/envctrl.c @@ -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. */