mtd: lpddr: fix Kconfig dependency, for I/O accessors

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


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=897f3a18b0bbe466b7405d96bc99550578d5b145
Commit:     897f3a18b0bbe466b7405d96bc99550578d5b145
Parent:     fe4fd75b827a3c037d71ecaed04503e3637ccb1c
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Wed May 21 13:25:46 2014 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon May 26 10:38:25 2014 -0700

    mtd: lpddr: fix Kconfig dependency, for I/O accessors
    
    Not all architectures implement a writel_relaxed() accessor. Hopefully
    this will change eventually, but for now, this means lpddr2_nvm.c can't
    compile on some architectures.
    
    Let's add an ARM dependency for now, and leave a comment so maybe we can
    change this in the future.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Cc: Vincenzo Aliberti <vincenzo.aliberti at gmail.com>
---
 drivers/mtd/lpddr/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/lpddr/Kconfig b/drivers/mtd/lpddr/Kconfig
index 468f06d..3a19cbe 100644
--- a/drivers/mtd/lpddr/Kconfig
+++ b/drivers/mtd/lpddr/Kconfig
@@ -19,7 +19,8 @@ config MTD_QINFO_PROBE
 	    Flash products
 
 config MTD_LPDDR2_NVM
-	depends on MTD
+	# ARM dependency is only for writel_relaxed()
+	depends on MTD && ARM
 	tristate "Support for LPDDR2-NVM flash chips"
 	help
 	  This option enables support of PCM memories with a LPDDR2-NVM



More information about the linux-mtd-cvs mailing list