Skip to contentSkip to conversation

hecubafb: Fix section mismatch warnings

PATCH New Antonino A. Daplas 1 participant 1 message Feb 26, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hecubafb: Fix section mismatch warnings

Fix the following compile warnings:

WARNING: drivers/video/hecubafb.o - Section mismatch: reference to .init.data:hecubafb_var from .text between 'hecubafb_probe' (at offset 0x17c) and 'hecubafb_dpy_update'
WARNING: drivers/video/hecubafb.o - Section mismatch: reference to .init.data:hecubafb_var from .text between 'hecubafb_probe' (at offset 0x19e) and 'hecubafb_dpy_update'

---

 drivers/video/hecubafb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/hecubafb.c +2 -2
index a32e1b9..396dc27 100644
@@ -75,7 +75,7 @@ struct hecubafb_par {
 	unsigned int irq;
 };
 
-static struct fb_fix_screeninfo hecubafb_fix __initdata = {
+static struct fb_fix_screeninfo hecubafb_fix __devinitdata = {
 	.id =		"hecubafb",
 	.type =		FB_TYPE_PACKED_PIXELS,
 	.visual =	FB_VISUAL_MONO01,
@@ -85,7 +85,7 @@ static struct fb_fix_screeninfo hecubafb
 	.accel =	FB_ACCEL_NONE,
 };
 
-static struct fb_var_screeninfo hecubafb_var __initdata = {
+static struct fb_var_screeninfo hecubafb_var __devinitdata = {
 	.xres		= DPY_W,
 	.yres		= DPY_H,
 	.xres_virtual	= DPY_W,

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV