]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs: Allow to compile FS_FAT only for proper U-Boot
authorPali Rohár <pali@kernel.org>
Tue, 5 Apr 2022 13:48:32 +0000 (15:48 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Apr 2022 19:39:15 +0000 (15:39 -0400)
CONFIG_SPL_FS_FAT cannot be disabled when CONFIG_FS_FAT is enabled. Fix it.

Signed-off-by: Pali Rohár <pali@kernel.org>
fs/fs.c

diff --git a/fs/fs.c b/fs/fs.c
index c3a2ed97541c1a2dfbf28c4ca80ae72be1c86a41..2b0a242e8c7959d7f33b22f36569af0d60a2a363 100644 (file)
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -177,7 +177,7 @@ struct fstype_info {
 };
 
 static struct fstype_info fstypes[] = {
-#ifdef CONFIG_FS_FAT
+#if CONFIG_IS_ENABLED(FS_FAT)
        {
                .fstype = FS_TYPE_FAT,
                .name = "fat",