aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/max17042_battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/max17042_battery.c')
-rw-r--r--drivers/power/max17042_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c
index 830435adfb64..b1ebbc3b8640 100644
--- a/drivers/power/max17042_battery.c
+++ b/drivers/power/max17042_battery.c
@@ -731,7 +731,7 @@ static int max17042_probe(struct i2c_client *client,
731 regmap_write(chip->regmap, MAX17042_LearnCFG, 0x0007); 731 regmap_write(chip->regmap, MAX17042_LearnCFG, 0x0007);
732 } 732 }
733 733
734 ret = power_supply_register(&client->dev, &chip->battery); 734 ret = power_supply_register(&client->dev, &chip->battery, NULL);
735 if (ret) { 735 if (ret) {
736 dev_err(&client->dev, "failed: power supply register\n"); 736 dev_err(&client->dev, "failed: power supply register\n");
737 return ret; 737 return ret;