Commit 7e69ba7c authored by Jiri Kosina's avatar Jiri Kosina

HID: introduce proper dependency of HID_BATTERY on POWER_SUPPLY

ppc6xx_defconfig reveals this:

drivers/built-in.o: In function `hidinput_cleanup_battery': drivers/hid/hid-input.c:351: undefined reference to`power_supply_unregister'
drivers/built-in.o: In function `hidinput_setup_battery': drivers/hid/hid-input.c:338: undefined reference to `power_supply_register'
make[1]: *** [.tmp_vmlinux1] Error 1

The defconfig in question doens't mention either option and kbuild is
genertaing

	CONFIG_HID_BATTERY_STRENGTH=y
	CONFIG_POWER_SUPPLY=m

which is wrong. Put a proper dependency in place.
Reported-by: default avatarTony Breeds <tony@bakeyournoodle.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 8c3d52fc
......@@ -33,7 +33,7 @@ config HID
config HID_BATTERY_STRENGTH
bool
depends on POWER_SUPPLY
depends on HID && POWER_SUPPLY && HID == POWER_SUPPLY
default y
config HIDRAW
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment