Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a313d758 authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz
Browse files

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: default avatarMark Brown <broonie@sirena.org.uk>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
parent 29c6a2e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@
#include <linux/i2c.h>
#include <linux/i2c.h>
#include <linux/i2c/twl4030.h>
#include <linux/i2c/twl4030.h>


#ifdef CONFIG_ARM
#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
#include <mach/cpu.h>
#include <mach/cpu.h>
#endif
#endif