Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287284
b: refs/heads/master
c: 217c8b2
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Feb 7, 2012
1 parent d07d74a commit 0b91270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7cb3dbd10c09081fafd05fcbef590ce04e402ff
refs/heads/master: 217c8b2b1978aa4a02ce040a99c59ed3b6418fe5
4 changes: 2 additions & 2 deletions trunk/drivers/hid/hid-wiimote-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,14 +1226,14 @@ static int wiimote_hid_probe(struct hid_device *hdev,
wdata->battery.type = POWER_SUPPLY_TYPE_BATTERY;
wdata->battery.use_for_apm = 0;

power_supply_powers(&wdata->battery, &hdev->dev);

ret = power_supply_register(&wdata->hdev->dev, &wdata->battery);
if (ret) {
hid_err(hdev, "Cannot register battery device\n");
goto err_battery;
}

power_supply_powers(&wdata->battery, &hdev->dev);

ret = wiimote_leds_create(wdata);
if (ret)
goto err_free;
Expand Down

0 comments on commit 0b91270

Please sign in to comment.