linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: Exynos5: fix clock initialization for exynos5250
@ 2012-11-24  9:53 Thomas Abraham
  2012-11-25 23:22 ` Kukjin Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Abraham @ 2012-11-24  9:53 UTC (permalink / raw)
  To: linux-arm-kernel

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);
 }
 
-- 
1.6.6.rc2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: Exynos5: fix clock initialization for exynos5250
  2012-11-24  9:53 [PATCH] ARM: Exynos5: fix clock initialization for exynos5250 Thomas Abraham
@ 2012-11-25 23:22 ` Kukjin Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Kukjin Kim @ 2012-11-25 23:22 UTC (permalink / raw)
  To: linux-arm-kernel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-25 23:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-24  9:53 [PATCH] ARM: Exynos5: fix clock initialization for exynos5250 Thomas Abraham
2012-11-25 23:22 ` Kukjin Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).