Skip to content

Commit 0d9c80a

Browse files
geertumiquelraynal
authored andcommitted
mtd: nand: MTD_NAND_ECC_REALTEK should depend on HAS_DMA
If CONFIG_NO_DMA=y: ERROR: modpost: "dma_free_pages" [drivers/mtd/nand/ecc-realtek.ko] undefined! ERROR: modpost: "dma_alloc_pages" [drivers/mtd/nand/ecc-realtek.ko] undefined! The driver cannot function without DMA, hence fix this by adding a dependency on HAS_DMA. Fixes: 3148d0e ("mtd: nand: realtek-ecc: Add Realtek external ECC engine support") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 9225f02 commit 0d9c80a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/nand/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ config MTD_NAND_ECC_MEDIATEK
6363

6464
config MTD_NAND_ECC_REALTEK
6565
tristate "Realtek RTL93xx hardware ECC engine"
66-
depends on HAS_IOMEM
66+
depends on HAS_IOMEM && HAS_DMA
6767
depends on MACH_REALTEK_RTL || COMPILE_TEST
6868
select MTD_NAND_ECC
6969
help

0 commit comments

Comments
 (0)