mfd: Fix twl4030-core build
authorSamuel Ortiz <sameo@openedhand.com>
Sun, 11 Jan 2009 00:21:48 +0000 (01:21 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 11 Jan 2009 00:34:25 +0000 (01:34 +0100)
Fixes:
drivers/mfd/twl4030-core.c:657: error: implicit declaration of function
'cpu_is_omap2430'

Not the nicest fix, but this should be improved by a better OMAP clock API
implementation.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/twl4030-core.c

index b59c385cbc12f98bc319845d719fc83e518c8dc0..074b11ffbf41330efc0c74ea81f5b45656775586 100644 (file)
@@ -38,6 +38,9 @@
 #include <linux/i2c.h>
 #include <linux/i2c/twl4030.h>
 
+#ifdef CONFIG_ARM
+#include <mach/cpu.h>
+#endif
 
 /*
  * The TWL4030 "Triton 2" is one of a family of a multi-function "Power