]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
exynos: mmu: use CONFIG_IS_ENABLED
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 4 Nov 2021 07:13:17 +0000 (16:13 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 9 Nov 2021 05:07:46 +0000 (14:07 +0900)
to fix following checkpatch warnings.
Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where
possible

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Cc: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/arm/mach-exynos/mmu-arm64.c

index e3bd995143a8284ecd3de41b65aac6f92ee6b5e6..d2c550b27d3dbed8be8aad2585f186d8e81ece86 100644 (file)
@@ -7,7 +7,8 @@
 #include <common.h>
 #include <asm/armv8/mmu.h>
 
-#ifdef CONFIG_EXYNOS7420
+#if CONFIG_IS_ENABLED(EXYNOS7420)
+
 static struct mm_region exynos7420_mem_map[] = {
        {
                .virt   = 0x10000000UL,
@@ -28,9 +29,9 @@ static struct mm_region exynos7420_mem_map[] = {
 };
 
 struct mm_region *mem_map = exynos7420_mem_map;
-#endif
 
-#ifdef CONFIG_EXYNOS7870
+#elif CONFIG_IS_ENABLED(EXYNOS7870)
+
 static struct mm_region exynos7870_mem_map[] = {
        {
                .virt   = 0x10000000UL,
@@ -61,9 +62,9 @@ static struct mm_region exynos7870_mem_map[] = {
 };
 
 struct mm_region *mem_map = exynos7870_mem_map;
-#endif
 
-#ifdef CONFIG_EXYNOS7880
+#elif CONFIG_IS_ENABLED(EXYNOS7880)
+
 static struct mm_region exynos7880_mem_map[] = {
        {
                .virt   = 0x10000000UL,