All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: integrator_cp: fix build failure
@ 2012-10-07 17:42 Olof Johansson
  2012-10-09 10:04 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Olof Johansson @ 2012-10-07 17:42 UTC (permalink / raw)
  To: linux-arm-kernel

arch/arm/mach-integrator/integrator_cp.c:272:32: error: 'of_aliases'
undeclared (first use in this function)

Move the OF-only timer init under #ifdef CONFIG_OF, just like
integrator_ap has it.

Signed-off-by: Olof Johansson <olof@lixom.net>
---
 arch/arm/mach-integrator/integrator_cp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c
index 6870a1f..5b08e8e 100644
--- a/arch/arm/mach-integrator/integrator_cp.c
+++ b/arch/arm/mach-integrator/integrator_cp.c
@@ -261,6 +261,8 @@ static void __init intcp_init_early(void)
 #endif
 }
 
+#ifdef CONFIG_OF
+
 static void __init intcp_timer_init_of(void)
 {
 	struct device_node *node;
@@ -297,8 +299,6 @@ static struct sys_timer cp_of_timer = {
 	.init		= intcp_timer_init_of,
 };
 
-#ifdef CONFIG_OF
-
 static const struct of_device_id fpga_irq_of_match[] __initconst = {
 	{ .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, },
 	{ /* Sentinel */ }
-- 
1.7.10.1.488.g05fbf7a

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: integrator_cp: fix build failure
  2012-10-07 17:42 [PATCH] ARM: integrator_cp: fix build failure Olof Johansson
@ 2012-10-09 10:04 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2012-10-09 10:04 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Oct 7, 2012 at 7:42 PM, Olof Johansson <olof@lixom.net> wrote:

> arch/arm/mach-integrator/integrator_cp.c:272:32: error: 'of_aliases'
> undeclared (first use in this function)
>
> Move the OF-only timer init under #ifdef CONFIG_OF, just like
> integrator_ap has it.
>
> Signed-off-by: Olof Johansson <olof@lixom.net>

My mistake.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Thanks Olof!
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-09 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-07 17:42 [PATCH] ARM: integrator_cp: fix build failure Olof Johansson
2012-10-09 10:04 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.