From: Randy Dunlap gcc complains about __devinit in the wrong location: drivers/char/ipmi/ipmi_si_intf.c:2205: warning: '__section__' attribute does not apply to types Signed-off-by: Randy Dunlap Acked-by: Corey Minyard Signed-off-by: Andrew Morton --- drivers/char/ipmi/ipmi_si_intf.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/char/ipmi/ipmi_si_intf.c~ipmi-fix-devinit-placement drivers/char/ipmi/ipmi_si_intf.c --- devel/drivers/char/ipmi/ipmi_si_intf.c~ipmi-fix-devinit-placement 2006-04-12 22:45:51.000000000 -0700 +++ devel-akpm/drivers/char/ipmi/ipmi_si_intf.c 2006-04-12 22:45:51.000000000 -0700 @@ -2198,11 +2198,11 @@ static inline void wait_for_timer_and_th } } -static struct ipmi_default_vals +static __devinitdata struct ipmi_default_vals { int type; int port; -} __devinit ipmi_defaults[] = +} ipmi_defaults[] = { { .type = SI_KCS, .port = 0xca2 }, { .type = SI_SMIC, .port = 0xca9 }, _