ARM: 8112/1: only select ARM_PATCH_PHYS_VIRT if MMU is enabled
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 23 Jul 2014 19:37:44 +0000 (20:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 24 Jul 2014 13:29:13 +0000 (14:29 +0100)
This fixes the following warning:

warning: (ARCH_MULTIPLATFORM && ARCH_INTEGRATOR && ARCH_SHMOBILE_LEGACY) selects ARM_PATCH_PHYS_VIRT which has unmet direct dependencies (!XIP_KERNEL && MMU && (!ARCH_REALVIEW || !SPARSEMEM))

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig

index 245058b3b0ef7d5d27b7c113d6199127d8cd5a8c..7a14af6e3d2ca5055376cd001515b4bc67c8ccb1 100644 (file)
@@ -312,7 +312,7 @@ config ARCH_MULTIPLATFORM
 config ARCH_INTEGRATOR
        bool "ARM Ltd. Integrator family"
        select ARM_AMBA
-       select ARM_PATCH_PHYS_VIRT
+       select ARM_PATCH_PHYS_VIRT if MMU
        select AUTO_ZRELADDR
        select COMMON_CLK
        select COMMON_CLK_VERSATILE
@@ -658,7 +658,7 @@ config ARCH_MSM
 config ARCH_SHMOBILE_LEGACY
        bool "Renesas ARM SoCs (non-multiplatform)"
        select ARCH_SHMOBILE
-       select ARM_PATCH_PHYS_VIRT
+       select ARM_PATCH_PHYS_VIRT if MMU
        select CLKDEV_LOOKUP
        select GENERIC_CLOCKEVENTS
        select HAVE_ARM_SCU if SMP