mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-25 11:09:50 +07:00
![]() The two supplies are referenced outside of #ifdef CONFIG_I2C but
defined inside, which breaks the build if that is not built-in:
mach-davinci/board-dm644x-evm.c:861:21: error: use of undeclared identifier 'fixed_supplies_1_8v'
ARRAY_SIZE(fixed_supplies_1_8v), 1800000);
^
mach-davinci/board-dm644x-evm.c:861:21: error: use of undeclared identifier 'fixed_supplies_1_8v'
mach-davinci/board-dm644x-evm.c:861:21: error: use of undeclared identifier 'fixed_supplies_1_8v'
mach-davinci/board-dm644x-evm.c:860:49: error: use of undeclared identifier 'fixed_supplies_1_8v'
regulator_register_always_on(0, "fixed-dummy", fixed_supplies_1_8v,
I don't know if the regulators are used anywhere without I2C, but
always registering them seems to be the safe choice here.
On a related note, it might be best to also deal with CONFIG_I2C=m
across the file, unless this is going to be moved to DT and removed
really soon anyway.
Link: https://lore.kernel.org/r/20200527133746.643895-1-arnd@arndb.de
Fixes:
|
||
---|---|---|
.. | ||
include/mach | ||
asp.h | ||
board-da830-evm.c | ||
board-da850-evm.c | ||
board-dm355-evm.c | ||
board-dm355-leopard.c | ||
board-dm365-evm.c | ||
board-dm644x-evm.c | ||
board-dm646x-evm.c | ||
board-mityomapl138.c | ||
board-neuros-osd2.c | ||
board-omapl138-hawk.c | ||
board-sffsdr.c | ||
clock.h | ||
common.c | ||
cpuidle.c | ||
cpuidle.h | ||
da8xx-dt.c | ||
da830.c | ||
da850.c | ||
davinci.h | ||
ddr2.h | ||
devices-da8xx.c | ||
devices.c | ||
dm355.c | ||
dm365.c | ||
dm644x.c | ||
dm646x.c | ||
irqs.h | ||
Kconfig | ||
Makefile | ||
Makefile.boot | ||
mux.c | ||
mux.h | ||
pdata-quirks.c | ||
pm_domain.c | ||
pm.c | ||
psc.h | ||
serial.c | ||
sleep.S | ||
sram.c | ||
sram.h | ||
usb-da8xx.c | ||
usb.c |