diff mbox

[2/2] mtd: fsl-quadspi: allow building for other ARCHes with COMPILE_TEST

Message ID 1444682116-4708-2-git-send-email-computersforpeace@gmail.com
State Accepted
Commit d26a22d06708ba5a181003d44fcd6d0885cec8d4
Headers show

Commit Message

Brian Norris Oct. 12, 2015, 8:35 p.m. UTC
This driver doesn't actually need ARCH_MXC to compile. Relax the
constraints.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Han Xu <han.xu@freescale.com>
---
 drivers/mtd/spi-nor/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Han Xu Oct. 13, 2015, 9:22 p.m. UTC | #1
On Mon, Oct 12, 2015 at 3:35 PM, Brian Norris
<computersforpeace@gmail.com> wrote:
> This driver doesn't actually need ARCH_MXC to compile. Relax the
> constraints.
>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> Cc: Han Xu <han.xu@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 89bf4c1faa2b..2fe2a7e90fa9 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
Acked-by: Han xu <han.xu@freescale.com>
> --
> 2.6.0.rc2.230.g3dd15c0
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
diff mbox

Patch

diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
index 89bf4c1faa2b..2fe2a7e90fa9 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