diff options
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/max8925_power.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/power/max8925_power.c b/drivers/power/max8925_power.c index cbc7a0b6da52..377d1e633b4a 100644 --- a/drivers/power/max8925_power.c +++ b/drivers/power/max8925_power.c | |||
@@ -441,6 +441,8 @@ static __devinit int max8925_power_probe(struct platform_device *pdev) | |||
441 | info->ac.properties = max8925_ac_props; | 441 | info->ac.properties = max8925_ac_props; |
442 | info->ac.num_properties = ARRAY_SIZE(max8925_ac_props); | 442 | info->ac.num_properties = ARRAY_SIZE(max8925_ac_props); |
443 | info->ac.get_property = max8925_ac_get_prop; | 443 | info->ac.get_property = max8925_ac_get_prop; |
444 | info->ac.supplied_to = pdata->supplied_to; | ||
445 | info->ac.num_supplicants = pdata->num_supplicants; | ||
444 | ret = power_supply_register(&pdev->dev, &info->ac); | 446 | ret = power_supply_register(&pdev->dev, &info->ac); |
445 | if (ret) | 447 | if (ret) |
446 | goto out; | 448 | goto out; |
@@ -451,6 +453,9 @@ static __devinit int max8925_power_probe(struct platform_device *pdev) | |||
451 | info->usb.properties = max8925_usb_props; | 453 | info->usb.properties = max8925_usb_props; |
452 | info->usb.num_properties = ARRAY_SIZE(max8925_usb_props); | 454 | info->usb.num_properties = ARRAY_SIZE(max8925_usb_props); |
453 | info->usb.get_property = max8925_usb_get_prop; | 455 | info->usb.get_property = max8925_usb_get_prop; |
456 | info->usb.supplied_to = pdata->supplied_to; | ||
457 | info->usb.num_supplicants = pdata->num_supplicants; | ||
458 | |||
454 | ret = power_supply_register(&pdev->dev, &info->usb); | 459 | ret = power_supply_register(&pdev->dev, &info->usb); |
455 | if (ret) | 460 | if (ret) |
456 | goto out_usb; | 461 | goto out_usb; |