aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 052869d0ab78..6182265a6571 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -439,7 +439,7 @@ static bool hidinput_setup_battery(struct hid_device *dev, unsigned report_type,
439 dev->battery_report_type = report_type; 439 dev->battery_report_type = report_type;
440 dev->battery_report_id = field->report->id; 440 dev->battery_report_id = field->report->id;
441 441
442 ret = power_supply_register(&dev->dev, battery); 442 ret = power_supply_register(&dev->dev, battery, NULL);
443 if (ret != 0) { 443 if (ret != 0) {
444 hid_warn(dev, "can't register power supply: %d\n", ret); 444 hid_warn(dev, "can't register power supply: %d\n", ret);
445 kfree(battery->name); 445 kfree(battery->name);