From: Paul Cercueil Date: Mon, 2 Mar 2020 18:45:09 +0000 (-0300) Subject: mtd: rawnand: ingenic: Add dependency on MIPS || COMPILE_TEST X-Git-Tag: libata-5.7-2020-04-09~56^2~1^2~20 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e015d72f321e8b54aa3aef680e85dcd87f912703;p=linux-2.6-block.git mtd: rawnand: ingenic: Add dependency on MIPS || COMPILE_TEST This driver has no arch-specific instructions but is only ever useful on MIPS; so disable this driver if we're not compiling for MIPS, unless the driver is compile-tested. Signed-off-by: Paul Cercueil Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200302184509.10666-1-paul@crapouillou.net --- diff --git a/drivers/mtd/nand/raw/ingenic/Kconfig b/drivers/mtd/nand/raw/ingenic/Kconfig index e30feb56b650..96c5ae8b1bbc 100644 --- a/drivers/mtd/nand/raw/ingenic/Kconfig +++ b/drivers/mtd/nand/raw/ingenic/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config MTD_NAND_JZ4780 tristate "JZ4780 NAND controller" + depends on MIPS || COMPILE_TEST depends on JZ4780_NEMC help Enables support for NAND Flash connected to the NEMC on JZ4780 SoC