HID: wacom: Fix invalid power_supply_powers calls
authorPrzemo Firszt <przemo@firszt.eu>
Sun, 5 Feb 2012 22:35:24 +0000 (22:35 +0000)
committerJiri Kosina <jkosina@suse.cz>
Mon, 6 Feb 2012 15:14:20 +0000 (16:14 +0100)
commitd7cb3dbd10c09081fafd05fcbef590ce04e402ff
tree025f3d9d9a0dfdd609a82719e7c6fcb517a225a5
parentd4730ace0c7dbb64513e35b6fc5fd7e7f381e490
HID: wacom: Fix invalid power_supply_powers calls

power_supply_powers calls added in 35b4c01e2 ("power_supply: add "powers" links
to self-powered HID devices") have to be called after power device is created.
This patch also fixes the second call - it has to be "ac" instead of "battery"

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wacom.c