From: Randy Dunlap Date: Mon, 12 Nov 2012 17:20:49 +0000 (-0800) Subject: mfd: Fix stmpe.c build when OF is not enabled X-Git-Tag: v3.8-rc1~85^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20d5c7defc228cdaeff3ce3442f3a4e86af293c1;p=platform%2Fupstream%2Fkernel-adaptation-pc.git mfd: Fix stmpe.c build when OF is not enabled Fix build errors when CONFIG_OF is not enabled by including (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 Acked-by: Linus Walleij Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c index 0061d1b..f9f7de7 100644 --- a/drivers/mfd/stmpe.c +++ b/drivers/mfd/stmpe.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include