Patchwork [1/2] Revert "HID: wiimote: fix invalid power_supply_powers call"

login
register
mail settings
Submitter Luis Henriques
Date Sept. 11, 2012, 2:15 p.m.
Message ID <1347372938-30806-2-git-send-email-luis.henriques@canonical.com>
Download mbox | patch
Permalink /patch/183123/
State New
Headers show

Comments

Luis Henriques - Sept. 11, 2012, 2:15 p.m.
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 <luis.henriques@canonical.com>
---
 drivers/hid/hid-wiimote.c |    2 --
 1 file changed, 2 deletions(-)

Patch

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;