diff options
Diffstat (limited to 'drivers/power/wm8350_power.c')
-rw-r--r-- | drivers/power/wm8350_power.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/wm8350_power.c b/drivers/power/wm8350_power.c index b3607e2906d2..261ceca561d5 100644 --- a/drivers/power/wm8350_power.c +++ b/drivers/power/wm8350_power.c | |||
@@ -457,7 +457,7 @@ static int wm8350_power_probe(struct platform_device *pdev) | |||
457 | ac->properties = wm8350_ac_props; | 457 | ac->properties = wm8350_ac_props; |
458 | ac->num_properties = ARRAY_SIZE(wm8350_ac_props); | 458 | ac->num_properties = ARRAY_SIZE(wm8350_ac_props); |
459 | ac->get_property = wm8350_ac_get_prop; | 459 | ac->get_property = wm8350_ac_get_prop; |
460 | ret = power_supply_register(&pdev->dev, ac); | 460 | ret = power_supply_register(&pdev->dev, ac, NULL); |
461 | if (ret) | 461 | if (ret) |
462 | return ret; | 462 | return ret; |
463 | 463 | ||
@@ -466,7 +466,7 @@ static int wm8350_power_probe(struct platform_device *pdev) | |||
466 | battery->num_properties = ARRAY_SIZE(wm8350_bat_props); | 466 | battery->num_properties = ARRAY_SIZE(wm8350_bat_props); |
467 | battery->get_property = wm8350_bat_get_property; | 467 | battery->get_property = wm8350_bat_get_property; |
468 | battery->use_for_apm = 1; | 468 | battery->use_for_apm = 1; |
469 | ret = power_supply_register(&pdev->dev, battery); | 469 | ret = power_supply_register(&pdev->dev, battery, NULL); |
470 | if (ret) | 470 | if (ret) |
471 | goto battery_failed; | 471 | goto battery_failed; |
472 | 472 | ||
@@ -475,7 +475,7 @@ static int wm8350_power_probe(struct platform_device *pdev) | |||
475 | usb->properties = wm8350_usb_props; | 475 | usb->properties = wm8350_usb_props; |
476 | usb->num_properties = ARRAY_SIZE(wm8350_usb_props); | 476 | usb->num_properties = ARRAY_SIZE(wm8350_usb_props); |
477 | usb->get_property = wm8350_usb_get_prop; | 477 | usb->get_property = wm8350_usb_get_prop; |
478 | ret = power_supply_register(&pdev->dev, usb); | 478 | ret = power_supply_register(&pdev->dev, usb, NULL); |
479 | if (ret) | 479 | if (ret) |
480 | goto usb_failed; | 480 | goto usb_failed; |
481 | 481 | ||