mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
mtd: rawnand: add unspecified HAS_IOMEM dependency
Currently CONFIG_MTD_NAND_CADENCE implicitly depends on CONFIG_HAS_IOMEM=y; consequently, on architectures without IOMEM we get the following build error: ld: drivers/mtd/nand/raw/cadence-nand-controller.o: in function `cadence_nand_dt_probe.cold.31': drivers/mtd/nand/raw/cadence-nand-controller.c:2969: undefined reference to `devm_platform_ioremap_resource' ld: drivers/mtd/nand/raw/cadence-nand-controller.c:2977: undefined reference to `devm_ioremap_resource' Fix the build error by adding the unspecified dependency. Reported-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
c3917a0484
commit
baebaa2b13
@ -452,7 +452,7 @@ config MTD_NAND_PLATFORM
|
|||||||
|
|
||||||
config MTD_NAND_CADENCE
|
config MTD_NAND_CADENCE
|
||||||
tristate "Support Cadence NAND (HPNFC) controller"
|
tristate "Support Cadence NAND (HPNFC) controller"
|
||||||
depends on OF || COMPILE_TEST
|
depends on (OF || COMPILE_TEST) && HAS_IOMEM
|
||||||
help
|
help
|
||||||
Enable the driver for NAND flash on platforms using a Cadence NAND
|
Enable the driver for NAND flash on platforms using a Cadence NAND
|
||||||
controller.
|
controller.
|
||||||
|
Loading…
Reference in New Issue
Block a user