diff mbox

ARM: EXYNOS: Fix Kconfig dependencies for device tree enabled machine files

Message ID 1334144964-3282-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat April 11, 2012, 11:49 a.m. UTC
Add config dependency for Exynos4 and Exynos5 device tree enabled machine
files on config options ARCH_EXYNOS4 and ARCH_EXYNOS5 respectively.
Enabling machine support without proper ARCH support enabled is incorrect.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 arch/arm/mach-exynos/Kconfig |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Kukjin Kim April 14, 2012, 3:46 p.m. UTC | #1
On 04/11/12 04:49, Sachin Kamat wrote:
> Add config dependency for Exynos4 and Exynos5 device tree enabled machine
> files on config options ARCH_EXYNOS4 and ARCH_EXYNOS5 respectively.
> Enabling machine support without proper ARCH support enabled is incorrect.
>
> Signed-off-by: Sachin Kamat<sachin.kamat@linaro.org>
> ---
>   arch/arm/mach-exynos/Kconfig |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
> index 801c738..2c35fd4 100644
> --- a/arch/arm/mach-exynos/Kconfig
> +++ b/arch/arm/mach-exynos/Kconfig
> @@ -370,6 +370,7 @@ comment "Flattened Device Tree based board for EXYNOS SoCs"
>
>   config MACH_EXYNOS4_DT
>   	bool "Samsung Exynos4 Machine using device tree"
> +	depends on ARCH_EXYNOS4
>   	select CPU_EXYNOS4210
>   	select USE_OF
>   	select ARM_AMBA
> @@ -382,6 +383,7 @@ config MACH_EXYNOS4_DT
>
>   config MACH_EXYNOS5_DT
>   	bool "SAMSUNG EXYNOS5 Machine using device tree"
> +	depends on ARCH_EXYNOS5
>   	select SOC_EXYNOS5250
>   	select USE_OF
>   	select ARM_AMBA

Applied, thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
diff mbox

Patch

diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 801c738..2c35fd4 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -370,6 +370,7 @@  comment "Flattened Device Tree based board for EXYNOS SoCs"
 
 config MACH_EXYNOS4_DT
 	bool "Samsung Exynos4 Machine using device tree"
+	depends on ARCH_EXYNOS4
 	select CPU_EXYNOS4210
 	select USE_OF
 	select ARM_AMBA
@@ -382,6 +383,7 @@  config MACH_EXYNOS4_DT
 
 config MACH_EXYNOS5_DT
 	bool "SAMSUNG EXYNOS5 Machine using device tree"
+	depends on ARCH_EXYNOS5
 	select SOC_EXYNOS5250
 	select USE_OF
 	select ARM_AMBA