power-supply: Return early if "power-supplies" property isn't valid
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Sep 2014 12:01:23 +0000 (17:31 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 16 Sep 2014 09:01:27 +0000 (11:01 +0200)
If power-supply's DT node doesn't have a valid "power-supplies" entry, then
power_supply_check_supplies() should return early instead of trying to allocate
memory for "supplied_from" array.

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

Simple merge