Skip to content
Commit c9d84681 authored by Liang He's avatar Liang He Committed by Sebastian Reichel
Browse files

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: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 38d45444
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment