From: Jiri Kosina Date: Fri, 16 Dec 2011 22:35:55 +0000 (+0100) Subject: HID: introduce proper dependency of HID_BATTERY on POWER_SUPPLY X-Git-Tag: upstream/snapshot3+hdmi~8391^2~1^4~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e69ba7caeb00babd40c69fea7f0628c307d7b99;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Tony Breeds Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 3a97f1f..7745c3e 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -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