浏览代码

mfd: Fix twl4030-core build

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>
Samuel Ortiz 16 年之前
父节点
当前提交
b29c06ae96
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/mfd/twl4030-core.c

+ 3 - 0
drivers/mfd/twl4030-core.c

@@ -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