Skip to content

Commit

Permalink
cramfs: better MTD dependency expression
Browse files Browse the repository at this point in the history
Commit b9f5fb1 ("cramfs: fix MTD dependency") did what it says.

Since commit 9059a34 ("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]>
  • Loading branch information
Nicolas Pitre authored and torvalds committed Feb 8, 2018
1 parent c013632 commit a8c6db0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/cramfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8c6db0

Please sign in to comment.