mfd: Fix stmpe.c build when OF is not enabled
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 12 Nov 2012 17:20:49 +0000 (09:20 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Nov 2012 21:05:15 +0000 (22:05 +0100)
commit20d5c7defc228cdaeff3ce3442f3a4e86af293c1
treecfd79b910219dec8e22a215b56c74f7b8f4274c1
parent931cbaf352e06b649a5033af8dd17eed53efc2c7
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>
drivers/mfd/stmpe.c