alistair23-linux/arch/arm/mach-davinci
Arnd Bergmann 04b9665b54 ARM: davinci: only use NVMEM when available
The davinci platform contains code that calls into the nvmem
subsystem, but that might be a loadable module, causing a
link error:

arch/arm/mach-davinci/built-in.o: In function `davinci_get_mac_addr':
:(.text+0x1088): undefined reference to `nvmem_device_read'
arch/arm/mach-davinci/built-in.o: In function `read_factory_config':
:(.text+0x214c): undefined reference to `nvmem_device_read'

Also, when NVMEM is completely disabled, the functions fail with
nonobvious error messages.

This ensures we only call the API functions when the code is actually
reachable from the board file, and otherwise prints a unique log
message.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: bec3c11bad ("misc: at24: replace memory_accessor with nvmem_device_read")
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
2016-04-29 11:58:38 -07:00
..
include/mach ARM: 8532/1: uncompress: mark putc as inline 2016-02-22 16:55:42 +00:00
aemif.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
asp.h ARM: davinci: devices-da8xx: Add support for McASP2 on da830 2015-03-18 15:52:05 +05:30
board-da830-evm.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
board-da850-evm.c ARM: SoC multiplatform code changes for v4.5 2016-01-20 18:03:56 -08:00
board-dm355-evm.c ARM: SoC non-urgent fixes for v4.5 2016-01-20 17:44:16 -08:00
board-dm355-leopard.c ARM: davinci: fix a problematic usage of WARN() 2015-12-15 15:29:34 +05:30
board-dm365-evm.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
board-dm644x-evm.c ARM: davinci: make I2C support optional 2016-02-17 19:20:05 +05:30
board-dm646x-evm.c ARM: davinci: make I2C support optional 2016-02-17 19:20:05 +05:30
board-mityomapl138.c ARM: davinci: only use NVMEM when available 2016-04-29 11:58:38 -07:00
board-neuros-osd2.c ARM: davinci: Use standard logging styles 2014-11-18 21:06:41 +05:30
board-omapl138-hawk.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
board-sffsdr.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
clock.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
clock.h
common.c ARM: davinci: only use NVMEM when available 2016-04-29 11:58:38 -07:00
cp_intc.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
cp_intc.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
cpuidle.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
cpuidle.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
da8xx-dt.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
da830.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
da850.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
davinci.h ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
ddr2.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
devices-da8xx.c ARM: davinci: devices-da8xx: Add dma_slave_map to edma 2016-02-22 15:39:39 +05:30
devices.c ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
dm355.c ARM: davinci: dm355: Add dma_slave_map to edma 2016-02-22 15:49:51 +05:30
dm365.c ARM: davinci: dm365: Add dma_slave_map to edma 2016-02-22 15:51:33 +05:30
dm644x.c ARM: davinci: dm644x: Add dma_slave_map to edma 2016-02-22 15:53:34 +05:30
dm646x.c ARM: davinci: dm646x: Add dma_slave_map to edma 2016-02-22 15:55:27 +05:30
irq.c
Kconfig ARM: davinci: make I2C support optional 2016-02-17 19:20:05 +05:30
Makefile ARM: davinci: Remove CDCE949 driver 2015-01-20 19:29:58 +05:30
Makefile.boot ARM: davinci: enable da8xx build concurrently with older devices 2014-03-06 19:08:28 +05:30
mux.c ARM: davinci: davinci_cfg_reg cannot be init 2015-02-18 12:20:25 +01:00
mux.h
pm.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
pm_domain.c arm: davinci: remove boilerplate code and use USE_PM_CLK_RUNTIME_OPS 2015-05-12 23:55:38 +02:00
psc.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
psc.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
serial.c ARM: davinci: serial.c: remove unused serial_read_reg() 2015-01-14 15:56:12 +05:30
sleep.S ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
sram.c ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
sram.h ARM: davinci: make headers more local 2015-12-01 21:52:51 +01:00
time.c ARM/davinci/time: Migrate to new 'set-state' interface 2015-07-17 08:22:48 +05:30
usb.c