aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2012-11-12 12:20:49 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2012-11-26 16:05:15 -0500
commit20d5c7defc228cdaeff3ce3442f3a4e86af293c1 (patch)
treecfd79b910219dec8e22a215b56c74f7b8f4274c1 /drivers/mfd
parent931cbaf352e06b649a5033af8dd17eed53efc2c7 (diff)
mfd: Fix stmpe.c build when OF is not enabled
Fix build errors when CONFIG_OF is not enabled by including <linux/of.h> (needs to be added in any case). An alternative fix could be to make the driver depend on OF. drivers/mfd/stmpe.c:1025:2: error: implicit declaration of function 'of_property_read_u32' drivers/mfd/stmpe.c:1030:2: error: implicit declaration of function 'for_each_child_of_node' drivers/mfd/stmpe.c:1030:36: error: expected ';' before '{' token Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/stmpe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 0061d1bc9719..f9f7de796029 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -13,6 +13,7 @@
13#include <linux/interrupt.h> 13#include <linux/interrupt.h>
14#include <linux/irq.h> 14#include <linux/irq.h>
15#include <linux/irqdomain.h> 15#include <linux/irqdomain.h>
16#include <linux/of.h>
16#include <linux/pm.h> 17#include <linux/pm.h>
17#include <linux/slab.h> 18#include <linux/slab.h>
18#include <linux/mfd/core.h> 19#include <linux/mfd/core.h>