]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drivers/memory/Kconfig: Add CONFIG_OF dependency
authorAnders Roxell <anders.roxell@linaro.org>
Wed, 25 Jul 2018 09:19:28 +0000 (11:19 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:06 +0000 (09:46 +0200)
JZ4780_NEMC doesn't depend on OF, and if OF isn't enabled we get this
error:
drivers/memory/jz4780-nemc.c: In function ‘jz4780_nemc_num_banks’:
drivers/memory/jz4780-nemc.c:72:10: error: implicit declaration of
 function ‘of_read_number’; did you mean ‘down_read_nested’?
 [-Werror=implicit-function-declaration]
   bank = of_read_number(prop, 1);
          ^~~~~~~~~~~~~~
          down_read_nested

Make JZ4780_NEMC depend on OF.

Fixes: ab99e11062c1 ("memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/memory/Kconfig

index a642552dfdc969872145fd4ad7f8daecfc26cd4c..63389f075f1dcab5637f4a72bc1081303fc86075 100644 (file)
@@ -123,7 +123,7 @@ config JZ4780_NEMC
        bool "Ingenic JZ4780 SoC NEMC driver"
        default y
        depends on MACH_JZ4780 || COMPILE_TEST
-       depends on HAS_IOMEM
+       depends on HAS_IOMEM && OF
        help
          This driver is for the NAND/External Memory Controller (NEMC) in
          the Ingenic JZ4780. This controller is used to handle external