summaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2018-11-20 14:38:26 +0100
committerDavid S. Miller <davem@davemloft.net>2018-12-03 05:55:23 +0100
commit6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100 (patch)
tree2a9f4845ae57d42dac53e0c1f15e6f3c4cd0d966 /drivers/sbus
parentsbus: char: add of_node_put() (diff)
downloadlinux-6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100.tar.xz
linux-6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100.zip
drivers/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>
Diffstat (limited to 'drivers/sbus')
-rw-r--r--drivers/sbus/char/envctrl.c2
1 files changed, 2 insertions, 0 deletions
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. */