From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH -next] mfd: fix stmpe.c build when OF is not enabled Date: Tue, 13 Nov 2012 14:35:26 +0100 Message-ID: References: <20121112164431.8bcfe78d2a2ec73271733db4@canb.auug.org.au> <50A12FF1.4000800@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <50A12FF1.4000800@infradead.org> Sender: linux-kernel-owner@vger.kernel.org To: Randy Dunlap Cc: Rabin Vincent , Samuel Ortiz , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-next.vger.kernel.org On Mon, Nov 12, 2012 at 6:20 PM, Randy Dunlap wrote: > 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 Acked-by: Linus Walleij Yours, Linus Walleij