OpenCloudOS-Kernel/drivers/mtd/nand/onenand
Krzysztof Kozlowski c717b9b7d6 mtd: onenand: omap2: add dependency on GPMC
OMAP2 OneNAND driver uses gpmc_omap_onenand_set_timings() provided by
OMAP_GPMC driver, so the latter cannot be module if OneNAND driver is
built-in:

  /usr/bin/arm-linux-gnueabi-ld: drivers/mtd/nand/onenand/onenand_omap2.o: in function `omap2_onenand_probe':
  onenand_omap2.c:(.text+0x520): undefined reference to `gpmc_omap_onenand_set_timings'

The OMAP_GPMC is also a runtime dependency.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 854fd9209b ("memory: omap-gpmc: Allow building as a module")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221107091520.127053-1-krzysztof.kozlowski@linaro.org
2022-11-07 16:53:04 +01:00
..
Kconfig mtd: onenand: omap2: add dependency on GPMC 2022-11-07 16:53:04 +01:00
Makefile mtd: onenand: Rename omap2 driver to avoid a build warning 2020-01-21 20:00:35 +01:00
generic.c mtd: onenand: Check for error irq 2022-01-23 16:37:17 +01:00
onenand_base.c mtd: add ECC error accounting for each read request 2022-09-21 10:38:09 +02:00
onenand_bbt.c mtd: always initialize 'stats' in struct mtd_oob_ops 2022-09-21 10:38:07 +02:00
onenand_omap2.c mtd: onenand: Use mtd->oops_panic_write as condition 2020-12-10 22:37:32 +01:00
onenand_samsung.c mtd: onenand: Fix fall-through warnings for Clang 2021-03-11 12:17:44 +01:00
samsung.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00