power_supply: Add of_node_put to fix refcount
authorRhyland Klein <rklein@nvidia.com>
Mon, 10 Jun 2013 21:26:39 +0000 (17:26 -0400)
committerAnton Vorontsov <anton@enomsg.org>
Sat, 29 Jun 2013 01:20:54 +0000 (18:20 -0700)
commit2054d6e90e26b01ac0f125a42fecba63f226e55e
treec0798e003a78f5196cd913a3e72a4ce9b0d8a771
parentb50df95c8f0703c95625181d2eaf53855c5ebee5
power_supply: Add of_node_put to fix refcount

of_parse_phandle increments the refcount for a dt node before returning
it. Add of_node_put where needed to properly decrement the refcount when
we are done using a given node.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/power_supply_core.c