cramfs: better MTD dependency expression
authorNicolas Pitre <[email protected]>
Thu, 8 Feb 2018 03:08:08 +0000 (22:08 -0500)
committerLinus Torvalds <[email protected]>
Thu, 8 Feb 2018 19:37:31 +0000 (11:37 -0800)
Commit b9f5fb1800d8 ("cramfs: fix MTD dependency") did what it says.

Since commit 9059a3493efe ("kconfig: fix relational operators for bool
and tristate symbols") it is possible to do it slightly better though.

Signed-off-by: Nicolas Pitre <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/cramfs/Kconfig

index 58e2fe40b2a04423de26729613bae16c233c8920..5933f995309a3219f733953d27939f6a5f9c8c84 100644 (file)
@@ -33,8 +33,7 @@ config CRAMFS_BLOCKDEV
 
 config CRAMFS_MTD
        bool "Support CramFs image directly mapped in physical memory"
-       depends on CRAMFS && MTD
-       depends on CRAMFS=m || MTD=y
+       depends on CRAMFS && CRAMFS <= MTD
        default y if !CRAMFS_BLOCKDEV
        help
          This option allows the CramFs driver to load data directly from