power-supply: Propagate error returned by power_supply_find_supply_from_node()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Sep 2014 12:01:29 +0000 (17:31 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 16 Sep 2014 09:01:32 +0000 (11:01 +0200)
commitf5b89affe2b2e6a6092f4228baf08a6dd59bfc61
treed7a7f97f5f73f5540bfcfae36c375048c71d3c1e
parent8468b029a2871b1f0e372a9354bddeac6b03af3b
power-supply: Propagate error returned by power_supply_find_supply_from_node()

Callers of power_supply_find_supply_from_node(), i.e.
power_supply_check_supplies(), must propagate the errors returned by it instead
of returning their own.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/power_supply_core.c