On Thu, Sep 29, 2011 at 07:04:15PM +0200, Stephen Warren wrote: > Peter De Schrijver wrote at Wednesday, September 28, 2011 4:30 PM: > ... > > diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt.c > ... > > @@ -80,9 +80,19 @@ static struct of_device_id tegra_dt_gic_match[] __initdata = { > > {} > > }; > > > > +static struct { > > + char *machine; > > + void (*init)(void); > > +} pinmux_configs[] = { > > + { "nvidia,harmony", harmony_pinmux_init() }, > > + { "nvidia,seaboard", seaboard_pinmux_init() }, > > + { "nvidia,ventana", ventana_pinmux_init() }, > > +}; > > Do you want the brackets after the function names there? Locally, they > cause the following syntax errors during compilation: > > arch/arm/mach-tegra/board-dt.c:85: error: initializer element is not constant > arch/arm/mach-tegra/board-dt.c:85: error: (near initialization for 'pinmux_configs[0].init') > arch/arm/mach-tegra/board-dt.c:86: error: initializer element is not constant > arch/arm/mach-tegra/board-dt.c:86: error: (near initialization for 'pinmux_configs[1].init') > arch/arm/mach-tegra/board-dt.c:87: error: initializer element is not constant > arch/arm/mach-tegra/board-dt.c:87: error: (near initialization for 'pinmux_configs[2].init') > > (using gcc version 4.4.3 (gcc-4.4.3_cos_gg_51096)) It compiled fine here using gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50). I will change it next week when I'm back at the office. Cheers, Peter. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html