projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923e09c
)
drivers/sbus/char: add of_node_put()
author
Yangtao Li
<tiny.windzz@gmail.com>
Tue, 20 Nov 2018 13:38:26 +0000
(08:38 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:13:13 +0000
(14:13 +0100)
[ 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>
drivers/sbus/char/envctrl.c
patch
|
blob
|
history
diff --git
a/drivers/sbus/char/envctrl.c
b/drivers/sbus/char/envctrl.c
index 56e962a014939e31c7ad74687263ecd69558ef7b..b8481927bfe4048b4147e01c77c0f7f695ab90bb 100644
(file)
--- 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. */