]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: MTD_NAND_ECC_MEDIATEK should depend on ARCH_MEDIATEK
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 9 May 2022 13:50:02 +0000 (15:50 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 12 May 2022 14:43:04 +0000 (16:43 +0200)
commit310a0cf5d24183f383b3a2f08c537c55dfc271ad
treed5963c3d5a5d48b7d7c1291d896018095dfd66c6
parent5d240cb0f83c8df4762795ccad7dfba7351b4f8d
mtd: nand: MTD_NAND_ECC_MEDIATEK should depend on ARCH_MEDIATEK

The MediaTek Hardware ECC Engine is only present on MediaTek MT27xx and
MT76xx SoCs.  The driver for this engine is a dependency for the
MediaTek NAND controller (MTD_NAND_MTK) and the MediaTek SPI NAND Flash
Interface (SPI_MTK_SNFI) drivers, both of which already depend on
ARCH_MEDIATEK.

Hence add a dependency on ARCH_MEDIATEK to the Hardware ECC Engine
driver, too, to prevent asking the user about this driver when
configuring a kernel without MediaTek SoC support.

Fixes: e9e3d6567de2d843 ("mtd: nand: make mtk_ecc.c a separated module")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/bb9568e825d4bc7506870b03836baa91bcc4b725.1652104136.git.geert+renesas@glider.be
drivers/mtd/nand/Kconfig