summaryrefslogtreecommitdiff
path: root/drivers/power/max8997_charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/max8997_charger.c')
-rw-r--r--drivers/power/max8997_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/max8997_charger.c b/drivers/power/max8997_charger.c
index aefa0c9a3007..a9f4d506eb44 100644
--- a/drivers/power/max8997_charger.c
+++ b/drivers/power/max8997_charger.c
@@ -156,7 +156,7 @@ static int max8997_battery_probe(struct platform_device *pdev)
charger->dev = &pdev->dev;
charger->iodev = iodev;
- ret = power_supply_register(&pdev->dev, &charger->battery);
+ ret = power_supply_register(&pdev->dev, &charger->battery, NULL);
if (ret) {
dev_err(&pdev->dev, "failed: power supply register\n");
return ret;