mtd: st_spi_fsm: only build for ARM

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 10 23:59:05 PDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=dc002f99f3aa7c05981ecbbbc20efe5e8befe98a
Commit:     dc002f99f3aa7c05981ecbbbc20efe5e8befe98a
Parent:     38e2eee9abf202b5edad73eb0288e0a4dfaacfca
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Wed Apr 16 01:40:17 2014 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Apr 16 21:59:29 2014 -0700

    mtd: st_spi_fsm: only build for ARM
    
    COMPILE_TEST allows us to build this driver on other arch'es. But not
    all arch'es have the right I/O accessors -- particularly, x86 is missing
    readsl() and writesl().
    
    So just restrict this driver to ARCH_STI. It's still buildable for a
    multiplatform ARM kernel, so it can get decent compile coverage.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Acked-by: Lee Jones <lee.jones at linaro.org>
---
 drivers/mtd/devices/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
index 9aae104..c49d0b1 100644
--- a/drivers/mtd/devices/Kconfig
+++ b/drivers/mtd/devices/Kconfig
@@ -212,7 +212,7 @@ config MTD_DOCG3
 
 config MTD_ST_SPI_FSM
 	tristate "ST Microelectronics SPI FSM Serial Flash Controller"
-	depends on ARCH_STI || COMPILE_TEST
+	depends on ARCH_STI
 	help
 	  This provides an MTD device driver for the ST Microelectronics
 	  SPI Fast Sequence Mode (FSM) Serial Flash Controller and support



More information about the linux-mtd-cvs mailing list