From: Mark Brown Date: Wed, 4 Feb 2009 20:26:07 +0000 (+0100) Subject: mfd: Fix TWL4030 build on some ARM variants X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a313d758cc7956d7f1e7a727c8fa571b6468fabf;p=openwrt%2Fstaging%2Fblogic.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 e7ab0035d305..68826f1e36bc 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