Re: [PATCH -next] mfd: fix stmpe.c build when OF is not enabled
From: Linus Walleij <hidden>
Date: 2012-11-13 13:35:28
Also in:
lkml
From: Linus Walleij <hidden>
Date: 2012-11-13 13:35:28
Also in:
lkml
On Mon, Nov 12, 2012 at 6:20 PM, Randy Dunlap [off-list ref] wrote:
From: Randy Dunlap <redacted>
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 <redacted>
Cc: Rabin Vincent <redacted>
Cc: Samuel Ortiz <redacted>Acked-by: Linus Walleij <redacted> Yours, Linus Walleij