From: Paul Walmsley Date: Thu, 27 Sep 2007 06:11:24 +0000 (-0600) Subject: gpmc: fix GPMC code to boot on 3430 X-Git-Tag: v2.6.23-omap1~54 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7f8d44118bda51428abc9bb655525e5f71ffc7ce;p=linux-2.6-omap-h63xx.git gpmc: fix GPMC code to boot on 3430 The GPMC clock name in OMAP3430 is gpmc_fck. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 5dca6d431a3..da7409e2e73 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -395,7 +395,11 @@ void __init gpmc_init(void) { u32 l; - gpmc_l3_clk = clk_get(NULL, "core_l3_ck"); + if (cpu_is_omap24xx()) + gpmc_l3_clk = clk_get(NULL, "core_l3_ck"); + else if (cpu_is_omap34xx()) + gpmc_l3_clk = clk_get(NULL, "gpmc_fck"); + BUG_ON(IS_ERR(gpmc_l3_clk)); l = gpmc_read_reg(GPMC_REVISION);