ARM: tegra3: ARM_SAVE_DEBUG_CONTEXT should be selected based on PM_SLEEP
Manoj Chourasia [Wed, 21 Mar 2012 09:14:14 +0000 (14:14 +0530)]
ARM_SAVE_DEBUG_CONTEXT was getting selected by tegra3 independent
of PM_SLEEP config. ARM_SAVE_DEBUG_CONTEXT itself is dependent on
PM_SLEEP. That was generating following warning while doing
savedefconfig with PM_SLEEP disabled.

scripts/kconfig/conf --savedefconfig=defconfig Kconfig
warning: (ARCH_TEGRA_2x_SOC && ARCH_TEGRA_3x_SOC) selects \
ARM_SAVE_DEBUG_CONTEXT which has unmet direct dependencies\
(PM_SLEEP && CPU_V7)

This patch fixes the issue.

bug 931053

Change-Id: I57016476b7ca39f9ac36a9c59d0102c89c85c6c9
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/91461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

arch/arm/mach-tegra/Kconfig

index 2de37ff..fc3e755 100644 (file)
@@ -9,7 +9,7 @@ config ARCH_TEGRA_2x_SOC
        select ARCH_TEGRA_HAS_PCIE
        select CPU_V7
        select ARM_GIC
-       select ARM_SAVE_DEBUG_CONTEXT
+       select ARM_SAVE_DEBUG_CONTEXT if PM_SLEEP
        select ARCH_REQUIRE_GPIOLIB
        select USB_ARCH_HAS_EHCI if USB_SUPPORT
        select USB_ULPI if USB_SUPPORT
@@ -33,7 +33,7 @@ config ARCH_TEGRA_3x_SOC
        select ARCH_TEGRA_HAS_DUAL_CPU_CLUSTERS
        select CPU_V7
        select ARM_GIC
-       select ARM_SAVE_DEBUG_CONTEXT
+       select ARM_SAVE_DEBUG_CONTEXT if PM_SLEEP
        select GIC_SET_MULTIPLE_CPUS if SMP
        select ARCH_REQUIRE_GPIOLIB
        select USB_ARCH_HAS_EHCI if USB_SUPPORT