diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2018-11-20 08:38:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-21 14:09:52 +0100 |
commit | 1953eec6684baa78f366ee4af9914edfc3f7608d (patch) | |
tree | 981ed4e054ca406e9f5625e7355dee6b331a8b64 | |
parent | 1cb0f441faa3faedb71c390a4be4946ff2d3dca8 (diff) | |
download | linux-stable-1953eec6684baa78f366ee4af9914edfc3f7608d.tar.gz linux-stable-1953eec6684baa78f366ee4af9914edfc3f7608d.tar.bz2 linux-stable-1953eec6684baa78f366ee4af9914edfc3f7608d.zip |
drivers/sbus/char: add of_node_put()
[ Upstream commit 6bd520ab7cf69486ea81fd3cdfd2d5a390ad1100 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-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 5609b602c54d..baa9b322520b 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. */ |