Commit 897f3a18b0bbe466b7405d96bc99550578d5b145
1 parent
fe4fd75b82
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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@gmail.com> Cc: Vincenzo Aliberti <vincenzo.aliberti@gmail.com>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
drivers/mtd/lpddr/Kconfig
... | ... | @@ -19,7 +19,8 @@ |
19 | 19 | Flash products |
20 | 20 | |
21 | 21 | config MTD_LPDDR2_NVM |
22 | - depends on MTD | |
22 | + # ARM dependency is only for writel_relaxed() | |
23 | + depends on MTD && ARM | |
23 | 24 | tristate "Support for LPDDR2-NVM flash chips" |
24 | 25 | help |
25 | 26 | This option enables support of PCM memories with a LPDDR2-NVM |