From: Nicolas Pitre Date: Thu, 8 Feb 2018 03:08:08 +0000 (-0500) Subject: cramfs: better MTD dependency expression X-Git-Tag: v4.16-rc1~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8c6db00bff2bdb466d80b7ec7ff25d327071f9b;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Linus Torvalds --- diff --git a/fs/cramfs/Kconfig b/fs/cramfs/Kconfig index 58e2fe40b2a04..5933f995309a3 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