]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: scmi: Add missing of_node_get()
authorLiang He <windhl@126.com>
Wed, 22 Jun 2022 03:48:16 +0000 (11:48 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 30 Jun 2022 12:25:37 +0000 (13:25 +0100)
commit73097022db364c9d2aaf77d0f033b40e7ab3ac72
tree8257e7a2f4988aa7f888f792220e331262244acf
parent2f282bf0d7520f1923df52711a5ae5703e8bb4d6
regulator: scmi: Add missing of_node_get()

In scmi_regulator_probe(), of_find_node_by_name() will decrease
the refcount of its first argument and we need a of_node_get()
to keep reference balance.

Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20220622034816.4094043-1-windhl@126.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/scmi-regulator.c