public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* OMAP2 build errors
@ 2009-03-28 12:48 Russell King - ARM Linux
  2009-03-28 17:35 ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2009-03-28 12:48 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, Tony Lindgren

The result of building an OMAP2 configuration for merged mainline, master
and devel branches is:

  CC      arch/arm/mach-omap2/devices.o
arch/arm/mach-omap2/devices.c:160: error: ■OMAP34XX_MAILBOX_BASE■ undeclared here (not in a function)

Please resolve ASAP - if I don't have a patch by this evening, I will
commit the work-around below:

diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index d6b4b2f..d16d880 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -156,6 +156,7 @@ static struct resource omap2_mbox_resources[] = {
 };
 
 static struct resource omap3_mbox_resources[] = {
+#ifdef CONFIG_ARCH_OMAP3
 	{
 		.start		= OMAP34XX_MAILBOX_BASE,
 		.end		= OMAP34XX_MAILBOX_BASE + MBOX_REG_SIZE - 1,
@@ -165,6 +166,7 @@ static struct resource omap3_mbox_resources[] = {
 		.start		= INT_24XX_MAIL_U0_MPU,
 		.flags		= IORESOURCE_IRQ,
 	},
+#endif
 };
 
 static struct platform_device mbox_device = {

--
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] 3+ messages in thread

end of thread, other threads:[~2009-03-28 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 12:48 OMAP2 build errors Russell King - ARM Linux
2009-03-28 17:35 ` Tony Lindgren
2009-03-28 17:57   ` [PATCH] ARM: OMAP: Fix mailbox compile for 24xx (Re: OMAP2 build errors) Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox