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>
This commit is contained in:
parent
1cb0f441fa
commit
1953eec668
1 changed files with 2 additions and 0 deletions
|
@ -910,8 +910,10 @@ static void envctrl_init_i2c_child(struct device_node *dp,
|
||||||
for (len = 0; len < PCF8584_MAX_CHANNELS; ++len) {
|
for (len = 0; len < PCF8584_MAX_CHANNELS; ++len) {
|
||||||
pchild->mon_type[len] = ENVCTRL_NOMON;
|
pchild->mon_type[len] = ENVCTRL_NOMON;
|
||||||
}
|
}
|
||||||
|
of_node_put(root_node);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
of_node_put(root_node);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the monitor channels. */
|
/* Get the monitor channels. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue