From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: [PATCH -next] mfd: fix stmpe.c build when OF is not enabled Date: Mon, 12 Nov 2012 09:20:49 -0800 Message-ID: <50A12FF1.4000800@infradead.org> References: <20121112164431.8bcfe78d2a2ec73271733db4@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from casper.infradead.org ([85.118.1.10]:34461 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682Ab2KLRVj (ORCPT ); Mon, 12 Nov 2012 12:21:39 -0500 In-Reply-To: <20121112164431.8bcfe78d2a2ec73271733db4@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-ID: To: Rabin Vincent , Samuel Ortiz Cc: Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org From: Randy Dunlap 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 Cc: Rabin Vincent Cc: Samuel Ortiz --- drivers/mfd/stmpe.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20121112.orig/drivers/mfd/stmpe.c +++ linux-next-20121112/drivers/mfd/stmpe.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include