From patchwork Tue Sep 11 14:15:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/2] Revert "HID: wiimote: fix invalid power_supply_powers call" Date: Tue, 11 Sep 2012 04:15:37 -0000 From: Luis Henriques X-Patchwork-Id: 183123 Message-Id: <1347372938-30806-2-git-send-email-luis.henriques@canonical.com> To: kernel-team@lists.ubuntu.com BugLink: http://bugs.launchpad.net/bugs/1048605 This reverts commit ed326b8c4c653ce643f1cade74cd76c538170b64. This commit was cherry picked from commit 217c8b2b1978aa4a02ce040a99c59ed3b6418fe5. However, it was not correctly backported to Precise. Reverting it to re-apply the correction. Signed-off-by: Luis Henriques --- drivers/hid/hid-wiimote.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/hid/hid-wiimote.c b/drivers/hid/hid-wiimote.c index ba2081d..295901e 100644 --- a/drivers/hid/hid-wiimote.c +++ b/drivers/hid/hid-wiimote.c @@ -1259,8 +1259,6 @@ static int wiimote_hid_probe(struct hid_device *hdev, goto err_battery; } - power_supply_powers(&wdata->battery, &hdev->dev); - ret = wiimote_leds_create(wdata); if (ret) goto err_free;