Browse Source

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@gmail.com>
Acked-by: Han xu <han.xu@freescale.com>
Brian Norris 9 years ago
parent
commit
d26a22d067
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/mtd/spi-nor/Kconfig

+ 2 - 1
drivers/mtd/spi-nor/Kconfig

@@ -23,7 +23,8 @@ config MTD_SPI_NOR_USE_4K_SECTORS
 
 
 config SPI_FSL_QUADSPI
 config SPI_FSL_QUADSPI
 	tristate "Freescale Quad SPI controller"
 	tristate "Freescale Quad SPI controller"
-	depends on ARCH_MXC
+	depends on ARCH_MXC || COMPILE_TEST
+	depends on HAS_IOMEM
 	help
 	help
 	  This enables support for the Quad SPI controller in master mode.
 	  This enables support for the Quad SPI controller in master mode.
 	  This controller does not support generic SPI. It only supports
 	  This controller does not support generic SPI. It only supports