From: Mike Rapoport Date: Wed, 20 Aug 2008 05:10:06 +0000 (+0100) Subject: [ARM] 5212/1: pxa: fix build error when CPU_PXA310 is not defined X-Git-Tag: v2.6.27-rc5~53^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=55d8460c921ed725f5bf46c826a6bddbe8a75c46;p=linux-2.6-omap-h63xx.git [ARM] 5212/1: pxa: fix build error when CPU_PXA310 is not defined Fix arch/arm/mach-pxa/pxa300.c:94: error: 'CKEN_MMC3' undeclared here (not in a function) when building for PXA300. Signed-off-by: Mike Rapoport Acked-by: Eric Miao Signed-off-by: Russell King --- diff --git a/arch/arm/mach-pxa/pxa300.c b/arch/arm/mach-pxa/pxa300.c index 494fc1f032d..9adc7fc4618 100644 --- a/arch/arm/mach-pxa/pxa300.c +++ b/arch/arm/mach-pxa/pxa300.c @@ -90,7 +90,9 @@ static struct clk common_clks[] = { }; static struct clk pxa310_clks[] = { +#ifdef CONFIG_CPU_PXA310 PXA3xx_CKEN("MMCCLK", MMC3, 19500000, 0, &pxa3xx_device_mci3.dev), +#endif }; static int __init pxa300_init(void)