cramfs: better MTD dependency expression

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/a8c6db00bff2bdb466d80b7ec7ff25d327071f9b
Commit:     a8c6db00bff2bdb466d80b7ec7ff25d327071f9b
Parent:     c0136321924dd338bb8fc5661c4b0e27441a8d04
Refname:    refs/heads/master
Author:     Nicolas Pitre <[email protected]>
AuthorDate: Wed Feb 7 22:08:08 2018 -0500
Committer:  Linus Torvalds <[email protected]>
CommitDate: Thu Feb 8 11:37:31 2018 -0800

    cramfs: better MTD dependency expression
    
    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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/cramfs/Kconfig b/fs/cramfs/Kconfig
index 58e2fe40b2a0..5933f995309a 100644
--- a/fs/cramfs/Kconfig
+++ b/fs/cramfs/Kconfig
@@ -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
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.