diff options
| -rw-r--r-- | drivers/power/supply/power_supply_core.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index 1a2440e212a7..8dbd1197cc62 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -283,8 +283,7 @@ static int power_supply_check_supplies(struct power_supply *psy)  	if (!psy->dev.parent)  		return 0; -	nval = device_property_read_string_array(psy->dev.parent, -						 "supplied-from", NULL, 0); +	nval = device_property_string_array_count(psy->dev.parent, "supplied-from");  	if (nval <= 0)  		return 0; | 
