]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d18933681fb54d9893d9a5eb4c88738f9136f26
tree62eb185f67e98f1df27ff37a6495567e3e0daf59
parent42b1bd4f2ee8ddcbcaaa0a129d6d71b4a372830c
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: 06366c29e73a ("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