All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: Fix prm2xxx_3xxx.c INT_34XX_PRCM_MPU_IRQ build error
@ 2012-02-09 19:01 ` Cousson, Benoit
  0 siblings, 0 replies; 6+ messages in thread
From: Cousson, Benoit @ 2012-02-09 19:01 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Kristo, Tero

If CONFIG_OF is not defined, the following error will happen.

arch/arm/mach-omap2/prm2xxx_3xxx.c:41:11: error:
 ‘INT_34XX_PRCM_MPU_IRQ’ undeclared here (not in a function)

This is due to some hidden headers path from linux/of.h to plat/irqs.h
already reported by Russell for prm4xxx.c.

Add the #include <plat/irqs.h> in prm2xxx_3xxx.c to avoid depending
of that hidden dependency that should probably not exist in theory.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
---
 arch/arm/mach-omap2/prm2xxx_3xxx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/prm2xxx_3xxx.c b/arch/arm/mach-omap2/prm2xxx_3xxx.c
index c1c4d86..09e2916 100644
--- a/arch/arm/mach-omap2/prm2xxx_3xxx.c
+++ b/arch/arm/mach-omap2/prm2xxx_3xxx.c
@@ -18,6 +18,7 @@
 
 #include "common.h"
 #include <plat/cpu.h>
+#include <plat/irqs.h>
 #include <plat/prcm.h>
 
 #include "vp.h"
-- 
1.7.5.4



--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2012-02-09 20:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-09 19:01 [PATCH] ARM: OMAP2+: Fix prm2xxx_3xxx.c INT_34XX_PRCM_MPU_IRQ build error Cousson, Benoit
2012-02-09 19:01 ` Cousson, Benoit
2012-02-09 19:15 ` Russell King - ARM Linux
2012-02-09 19:15   ` Russell King - ARM Linux
2012-02-09 20:05   ` Cousson, Benoit
2012-02-09 20:05     ` Cousson, Benoit

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.