]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: olpc_battery: Hold the reference returned by of_find_compatible_node
authorLiang He <windhl@126.com>
Tue, 21 Jun 2022 15:17:20 +0000 (23:17 +0800)
committerSebastian Reichel <sre@kernel.org>
Sat, 16 Jul 2022 23:05:54 +0000 (01:05 +0200)
commit7a73111446031ef90cb163cb0a1f3907f49d1130
treef77830d0e8878a8c8667aa9a2cdbff0f3ba48b75
parent16c537411837b22e5f813eb88ae1b22894d8f759
power: supply: olpc_battery: Hold the reference returned by of_find_compatible_node

In olpc_battery_probe(), we should hold the reference returned by
of_find_compatible_node() and use it to call of_node_put() for
refcount balance.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/olpc_battery.c