power: supply: Fix build error when CONFIG_POWER_SUPPLY is not enabled.
authorRay Chi <raychi@google.com>
Sat, 27 Mar 2021 18:28:09 +0000 (02:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 11:35:54 +0000 (13:35 +0200)
commitc21161e40ee94486f7db701f9b4d3f9c25763e8c
tree62eb185f67e98f1df27ff37a6495567e3e0daf59
parent8a5b5c3c1634f9d7a96ea3b38f3d75333c887bf6
power: supply: Fix build error when CONFIG_POWER_SUPPLY is not enabled.

The build error happens when CONFIG_POWER_SUPPLY is not enabled.

h8300-linux-ld: drivers/usb/dwc3/gadget.o: in function `.L59':
>> gadget.c:(.text+0x655): undefined reference to `power_supply_set_property'

Fixes: 99288de36020 ("usb: dwc3: add an alternate path in vbus_draw callback")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ray Chi <raychi@google.com>
Link: https://lore.kernel.org/r/20210327182809.1814480-3-raychi@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/power_supply.h