mtd: fsl-quadspi: allow building for other ARCHes with COMPILE_TEST

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 6 10:59:24 PST 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d26a22d06708ba5a181003d44fcd6d0885cec8d4
Commit:     d26a22d06708ba5a181003d44fcd6d0885cec8d4
Parent:     a5c603a22bff27f3aea7e747af4229d75278f3ff
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Mon Oct 12 13:35:16 2015 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Oct 19 09:50:45 2015 -0700

    mtd: fsl-quadspi: allow building for other ARCHes with COMPILE_TEST
    
    This driver doesn't actually need ARCH_MXC to compile. Relax the
    constraints.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Acked-by: Han xu <han.xu at freescale.com>
---
 drivers/mtd/spi-nor/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
index 89bf4c1..2fe2a7e 100644
--- a/drivers/mtd/spi-nor/Kconfig
+++ b/drivers/mtd/spi-nor/Kconfig
@@ -23,7 +23,8 @@ config MTD_SPI_NOR_USE_4K_SECTORS
 
 config SPI_FSL_QUADSPI
 	tristate "Freescale Quad SPI controller"
-	depends on ARCH_MXC
+	depends on ARCH_MXC || COMPILE_TEST
+	depends on HAS_IOMEM
 	help
 	  This enables support for the Quad SPI controller in master mode.
 	  This controller does not support generic SPI. It only supports



More information about the linux-mtd-cvs mailing list