Skip to contentSkip to conversation

cobalt_lcdfb: fix section mismatch cobalt_lcdfb_fix

PATCH Yoichi Yuasa 1 participant 1 message Apr 3, 2010 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

WARNING: drivers/video/built-in.o(.devinit.text+0x78): Section mismatch in reference from the function cobalt_lcdfb_probe() to the variable .init.data:cobalt_lcdfb_fix The function __devinit cobalt_lcdfb_probe() references
a variable __initdata cobalt_lcdfb_fix.
If cobalt_lcdfb_fix is only used by cobalt_lcdfb_probe then
annotate cobalt_lcdfb_fix with a matching annotation.

---
 drivers/video/cobalt_lcdfb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/cobalt_lcdfb.c +1 -1
index 5eb61b5..42fe155 100644
@@ -123,7 +123,7 @@ static void lcd_clear(struct fb_info *info)
 	lcd_write_control(info, LCD_RESET);
 }
 
-static struct fb_fix_screeninfo cobalt_lcdfb_fix __initdata = {
+static struct fb_fix_screeninfo cobalt_lcdfb_fix __devinitdata = {
 	.id		= "cobalt-lcd",
 	.type		= FB_TYPE_TEXT,
 	.type_aux	= FB_AUX_TEXT_MDA,
Signature · 1 line
1.7.0.4