[PATCH] ARM: Exynos5: fix clock initialization for exynos5250

Kukjin Kim kgene.kim at samsung.com
Sun Nov 25 18:22:14 EST 2012


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 at 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 at samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.




More information about the linux-arm-kernel mailing list