memory: omap-gpmc: Fix compile test on SPARC
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 11 Sep 2020 14:32:51 +0000 (16:32 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 16 Sep 2020 17:42:02 +0000 (19:42 +0200)
SPARC comes without CONFIG_OF_ADDRESS thus compile testing fails on
linking:

  /usr/bin/sparc64-linux-gnu-ld: drivers/memory/omap-gpmc.o: in function `gpmc_probe_generic_child':
  omap-gpmc.c:(.text.unlikely+0x14ec): undefined reference to `of_platform_device_create'

Fixes: ea0c0ad6b6eb ("memory: Enable compile testing for most of the drivers")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Roger Quadros <rogerq@ti.com>
Link: https://lore.kernel.org/r/20200911143251.399-1-krzk@kernel.org
drivers/memory/Kconfig

index 8072204..00e013b 100644 (file)
@@ -104,6 +104,7 @@ config TI_EMIF
 
 config OMAP_GPMC
        bool "Texas Instruments OMAP SoC GPMC driver" if COMPILE_TEST
+       depends on OF_ADDRESS
        select GPIOLIB
        help
          This driver is for the General Purpose Memory Controller (GPMC)