diff mbox

ARM: Exynos5: fix clock initialization for exynos5250

Message ID 1353750810-21953-1-git-send-email-thomas.abraham@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Abraham Nov. 24, 2012, 9:53 a.m. UTC
The machine compatible value cannot be checked in exynos5_dt_map_io function
since the tree is not unflattened yet. Fix this by using soc_is_exynos5250
macro.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
---
 arch/arm/mach-exynos/mach-exynos5-dt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Kim Kukjin Nov. 25, 2012, 11:22 p.m. UTC | #1
Thomas Abraham wrote:
> 
> The machine compatible value cannot be checked in exynos5_dt_map_io
> function
> since the tree is not unflattened yet. Fix this by using soc_is_exynos5250
> macro.
> 
> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
> ---
>  arch/arm/mach-exynos/mach-exynos5-dt.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-
> exynos/mach-exynos5-dt.c
> index 77010f8..845d8e2 100644
> --- a/arch/arm/mach-exynos/mach-exynos5-dt.c
> +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
> @@ -117,7 +117,7 @@ static void __init exynos5_dt_map_io(void)
>  {
>  	exynos_init_io(NULL, 0);
> 
> -	if (of_machine_is_compatible("samsung,exynos5250"))
> +	if (soc_is_exynos5250())
>  		s3c24xx_init_clocks(24000000);
>  }
> 
> --

Correct, 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/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 77010f8..845d8e2 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -117,7 +117,7 @@  static void __init exynos5_dt_map_io(void)
 {
 	exynos_init_io(NULL, 0);
 
-	if (of_machine_is_compatible("samsung,exynos5250"))
+	if (soc_is_exynos5250())
 		s3c24xx_init_clocks(24000000);
 }