aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-03-15 22:34:45 +0100
committerKevin Hilman <[email protected]>2016-04-29 11:58:38 -0700
commit04b9665b54f7cdc184ea03b0687aaa6d9711646e (patch)
tree0b4c1d41c44b9cff5bb8f56161770bae92364086 /lib/test-string_helpers.c
parent6383190203b93ff5915edb378acc76bb6a21a604 (diff)
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 <[email protected]> Fixes: bec3c11bad0e ("misc: at24: replace memory_accessor with nvmem_device_read") Signed-off-by: Sekhar Nori <[email protected]> Signed-off-by: Kevin Hilman <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions