diff options
author | Tony Lindgren <tony@atomide.com> | 2012-02-17 15:08:20 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-02-17 15:08:20 -0800 |
commit | b0ee4e394009f02a1d1b166091a19e8b842b4ea4 (patch) | |
tree | 75e6df725e5402ed6fe9d78f23bf5cf45cfdf9d9 /drivers/hid/hid-wiimote-core.c | |
parent | abe763f2bccbc592d33a3a9c334acaefea022c0a (diff) | |
parent | 03e4fd6eb25e6b46536ecdb0d1b7d33d46b15480 (diff) | |
download | blackbird-op-linux-b0ee4e394009f02a1d1b166091a19e8b842b4ea4.tar.gz blackbird-op-linux-b0ee4e394009f02a1d1b166091a19e8b842b4ea4.zip |
Merge branch 'for_3.3/fixes/pm' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into fixes
Diffstat (limited to 'drivers/hid/hid-wiimote-core.c')
-rw-r--r-- | drivers/hid/hid-wiimote-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c index fc253b472f9d..cac3589b1ed5 100644 --- a/drivers/hid/hid-wiimote-core.c +++ b/drivers/hid/hid-wiimote-core.c @@ -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; |