ARM: OMAP2: fix mailbox init code
Subsystems (3)
PATCH 1/1 ARM: OMAP2: fix mailbox init code
Fix this:
arch/arm/mach-omap2/mailbox.c: In function 'omap2_mbox_probe':arch/arm/mach-omap2/mailbox.c:354: error: 'omap2_mboxes' undeclared (first use in this function) arch/arm/mach-omap2/mailbox.c:354: error: (Each undeclared identifier is reported only once arch/arm/mach-omap2/mailbox.c:354: error: for each function it appears in.)
Which happens on CONFIG_ARCH_OMAP2 && !CONFIG_SOC_OMAP2420, due to missing omap2_mboxes declaration.
In addition, make sure we declare the right mailbox instances for 2430.
--- arch/arm/mach-omap2/mailbox.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/mailbox.c +9 -1
@@ -281,8 +281,16 @@ static struct omap_mbox mbox_iva_info = { .ops = &omap2_mbox_ops, .priv = &omap2_mbox_iva_priv, }; +#endif -struct omap_mbox *omap2_mboxes[] = { &mbox_dsp_info, &mbox_iva_info,NULL }; +#ifdef CONFIG_ARCH_OMAP2 +struct omap_mbox *omap2_mboxes[] = { + &mbox_dsp_info, +#ifdef CONFIG_SOC_OMAP2420 + &mbox_iva_info, +#endif +NULL +};#endif #if defined(CONFIG_ARCH_OMAP4 )
Signature · 1 line
1.7.5.4
PATCH 1/1 ARM: OMAP2: fix mailbox init code
On Thu, Feb 23, 2012 at 14:23:35, Ohad Ben-Cohen wrote:
[...]
Quoted 4 lines
Which happens on
CONFIG_ARCH_OMAP2&& !CONFIG_SOC_OMAP2420, due to missingomap2_mboxesdeclaration.
[...]
arch/arm/mach-omap2/mailbox.c static struct omap_mbox mbox_iva_info = { · line 296
Quoted 13 lines
arch/arm/mach-omap2/mailbox.c +8
-1-struct omap_mbox *omap2_mboxes[] = { &mbox_dsp_info, &mbox_iva_info,NULL }; +#ifdef CONFIG_ARCH_OMAP2 +struct omap_mbox *omap2_mboxes[] = { + &mbox_dsp_info, +#ifdef CONFIG_SOC_OMAP2420 + &mbox_iva_info, +#endif +NULL +};#endif #if defined(CONFIG_ARCH_OMAP4 )
Instead of adding more #ifs can they be completely removed please?
PATCH 1/1 ARM: OMAP2: fix mailbox init code
Hi,
Quoted 19 lines · Vaibhav
On Thu, Feb 23, 2012 at 14:23:35, Ohad Ben-Cohen wrote:
[...]Quoted 4 lines
Which happens on
CONFIG_ARCH_OMAP2&& !CONFIG_SOC_OMAP2420, due to missingomap2_mboxesdeclaration.[...]
Quoted 12 lines
arch/arm/mach-omap2/mailbox.c +8
-1-struct omap_mbox *omap2_mboxes[] = { &mbox_dsp_info, &mbox_iva_info,NULL }; +#ifdef CONFIG_ARCH_OMAP2 +struct omap_mbox *omap2_mboxes[] = { + ? ? &mbox_dsp_info, +#ifdef CONFIG_SOC_OMAP2420 + ? ? &mbox_iva_info, +#endif + ? ? NULL +};?#endif
Quoted 3 lines
Quoted 1 line
?#if
defined(CONFIG_ARCH_OMAP4)Instead of adding more #ifs can they be completely removed please?
I'll rebase/repost this series:
[PATCH 0/7] OMAP: mailbox: removing static declarations
http://comments.gmane.org/gmane.linux.ports.arm.omap/59620
In the meantime I would appreciate comments.
Regards,
Omar
PATCH 1/1 ARM: OMAP2: fix mailbox init code
In reply to Bedia, VaibhavQuoted 1 line · Vaibhav
Instead of adding more #ifs can they be completely removed please?
Care to propose something specific (which is viable for the -rc cycle) ?
Thanks,
Ohad.
Tony Lindgren
maintainerPATCH 1/1 ARM: OMAP2: fix mailbox init code
Quoted 4 lines · Ohad Ben-Cohen
Quoted 1 line · Vaibhav
Instead of adding more #ifs can they be completely removed please?
Care to propose something specific (which is viable for the -rc cycle) ?
This is pretty much the minimal change for -rc cycle so I'll apply this into fixes.
Regards,
Tony