linux/arch/arm/mach-davinci
Arnd Bergmann 147922f919 ARM: davinci: fix build failure without I2C
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: 5e06d19694 ("ARM: davinci: dm644x-evm: Add Fixed regulators needed for tlv320aic33")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2020-05-28 12:35:00 +02:00
..
include/mach ARM: davinci: remove legacy timer support 2020-01-13 13:20:00 +05:30
asp.h ARM: davinci: wrap HW interrupt numbers with a macro 2019-02-19 19:40:52 +05:30
board-da830-evm.c ARM: davinci: da830-evm: fix GPIO lookup for OHCI 2019-07-02 20:18:33 +05:30
board-da850-evm.c ARM: davinci: da850-evm: switch to using a fixed regulator for lcdc 2019-08-26 17:53:57 +05:30
board-dm355-evm.c ARM: davinci: add missing sentinels to GPIO lookup tables 2019-04-12 19:43:54 +05:30
board-dm355-leopard.c ARM: davinci: aintc: wrap davinci_irq_init() with a helper 2019-02-19 19:44:21 +05:30
board-dm365-evm.c ARM: davinci: dm365-evm: Add Fixed regulators needed for tlv320aic3101 2020-01-13 17:35:35 +05:30
board-dm644x-evm.c ARM: davinci: fix build failure without I2C 2020-05-28 12:35:00 +02:00
board-dm646x-evm.c ARM: davinci: aintc: wrap davinci_irq_init() with a helper 2019-02-19 19:44:21 +05:30
board-mityomapl138.c ARM: davinci: cp-intc: add a wrapper around cp_intc_init() 2019-02-19 20:03:08 +05:30
board-neuros-osd2.c ARM: davinci: aintc: wrap davinci_irq_init() with a helper 2019-02-19 19:44:21 +05:30
board-omapl138-hawk.c ARM: davinci: omapl138-hawk: add missing regulator constraints for OHCI 2019-07-02 20:18:33 +05:30
board-sffsdr.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
clock.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
common.c ARM: davinci: pull davinci_intc_base into the respective intc drivers 2019-02-19 19:40:38 +05:30
cpuidle.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cpuidle.h
da8xx-dt.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
da830.c ARM: davinci: da830: switch to using the clocksource driver 2019-08-08 00:22:49 +05:30
da850.c ARM: davinci: da850: switch to using the clocksource driver 2019-08-08 00:22:49 +05:30
davinci.h ARM: davinci: move timer definitions to davinci.h 2019-08-08 00:22:49 +05:30
ddr2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
devices-da8xx.c ARM: davinci: remove legacy timer support 2020-01-13 13:20:00 +05:30
devices.c ARM: SoC: late updates 2020-02-08 14:17:27 -08:00
dm355.c ARM: davinci: dm355: switch to using the clocksource driver 2019-08-08 00:22:49 +05:30
dm365.c ARM: davinci: dm365: switch to using the clocksource driver 2020-01-13 13:20:00 +05:30
dm644x.c ARM: davinci: dm644x: switch to using the clocksource driver 2019-08-26 17:49:07 +05:30
dm646x.c ARM: davinci: dm646x: Fix a typo in the comment 2019-08-26 17:51:28 +05:30
irqs.h ARM: davinci: make irqs.h a local header 2019-02-19 19:44:02 +05:30
Kconfig ARM: davinci: Drop unneeded select of TIMER_OF 2020-05-15 23:27:37 +02:00
Makefile ARM: davinci: remove legacy timer support 2020-01-13 13:20:00 +05:30
Makefile.boot License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mux.c
mux.h
pdata-quirks.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pm_domain.c ARM: davinci: da8xx-dt: switch to device tree clocks 2018-06-26 16:20:03 +05:30
pm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
psc.h ARM: davinci: remove legacy clocks 2018-06-26 16:15:55 +05:30
serial.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
sleep.S ARM: davinci: fix sleep.S build error on ARMv4 2019-07-23 10:12:53 -07:00
sram.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sram.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
usb-da8xx.c ARM: davinci: make irqs.h a local header 2019-02-19 19:44:02 +05:30
usb.c ARM: davinci: make irqs.h a local header 2019-02-19 19:44:02 +05:30