diff options
Diffstat (limited to 'drivers/power/max17040_battery.c')
-rw-r--r-- | drivers/power/max17040_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/max17040_battery.c b/drivers/power/max17040_battery.c index 63ff3f705154..d36b2f6c2053 100644 --- a/drivers/power/max17040_battery.c +++ b/drivers/power/max17040_battery.c | |||
@@ -224,7 +224,7 @@ static int max17040_probe(struct i2c_client *client, | |||
224 | chip->battery.properties = max17040_battery_props; | 224 | chip->battery.properties = max17040_battery_props; |
225 | chip->battery.num_properties = ARRAY_SIZE(max17040_battery_props); | 225 | chip->battery.num_properties = ARRAY_SIZE(max17040_battery_props); |
226 | 226 | ||
227 | ret = power_supply_register(&client->dev, &chip->battery); | 227 | ret = power_supply_register(&client->dev, &chip->battery, NULL); |
228 | if (ret) { | 228 | if (ret) { |
229 | dev_err(&client->dev, "failed: power supply register\n"); | 229 | dev_err(&client->dev, "failed: power supply register\n"); |
230 | return ret; | 230 | return ret; |