diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2018-11-20 08:38:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-02 20:55:23 -0800 |
commit | 6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100 (patch) | |
tree | 2a9f4845ae57d42dac53e0c1f15e6f3c4cd0d966 /drivers/sbus | |
parent | 87d81a23e24f24ebe014891e8bdf3ff8785031e8 (diff) | |
download | linux-rpi-6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100.tar.gz linux-rpi-6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100.tar.bz2 linux-rpi-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.c | 2 |
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. */ |