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-Url: https://git.stricted.de/?a=commitdiff_plain;h=55d8460c921ed725f5bf46c826a6bddbe8a75c46;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 494fc1f032db..9adc7fc4618a 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)