diff options
Diffstat (limited to 'drivers/power/jz4740-battery.c')
-rw-r--r-- | drivers/power/jz4740-battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c index 9cd391d61819..0444434e1927 100644 --- a/drivers/power/jz4740-battery.c +++ b/drivers/power/jz4740-battery.c | |||
@@ -330,7 +330,7 @@ static int jz_battery_probe(struct platform_device *pdev) | |||
330 | else | 330 | else |
331 | jz4740_adc_set_config(pdev->dev.parent, JZ_ADC_CONFIG_BAT_MB, 0); | 331 | jz4740_adc_set_config(pdev->dev.parent, JZ_ADC_CONFIG_BAT_MB, 0); |
332 | 332 | ||
333 | ret = power_supply_register(&pdev->dev, &jz_battery->battery); | 333 | ret = power_supply_register(&pdev->dev, &jz_battery->battery, NULL); |
334 | if (ret) { | 334 | if (ret) { |
335 | dev_err(&pdev->dev, "power supply battery register failed.\n"); | 335 | dev_err(&pdev->dev, "power supply battery register failed.\n"); |
336 | goto err_free_charge_irq; | 336 | goto err_free_charge_irq; |