From: Mark Brown Date: Wed, 4 Feb 2009 20:26:07 +0000 (+0100) Subject: mfd: Fix TWL4030 build on some ARM variants X-Git-Tag: v3.0~10592^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a313d758cc7956d7f1e7a727c8fa571b6468fabf;p=platform%2Fkernel%2Flinux-amlogic.git mfd: Fix TWL4030 build on some ARM variants Many ARM platforms do not provide a mach/cpu.h so rather than guarding the use of that header with CONFIG_ARM guard it with the guards used when testing for the OMAP variants in the body of the code. Signed-off-by: Mark Brown Acked-by: David Brownell Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/twl4030-core.c b/drivers/mfd/twl4030-core.c index e7ab003..68826f1 100644 --- a/drivers/mfd/twl4030-core.c +++ b/drivers/mfd/twl4030-core.c @@ -38,7 +38,7 @@ #include #include -#ifdef CONFIG_ARM +#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) #include #endif