Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <broonie@sirena.org.uk>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>

authored by

Mark Brown and committed by
Samuel Ortiz
a313d758 29c6a2e6

+1 -1
+1 -1
drivers/mfd/twl4030-core.c
··· 38 38 #include <linux/i2c.h> 39 39 #include <linux/i2c/twl4030.h> 40 40 41 - #ifdef CONFIG_ARM 41 + #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) 42 42 #include <mach/cpu.h> 43 43 #endif 44 44