Title: [6438] trunk/drivers/video: Fix some remaining build warnings about section mismatches.
Revision
6438
Author
rgetz
Date
2009-05-20 21:12:40 -0500 (Wed, 20 May 2009)

Log Message

Fix some remaining build warnings about section mismatches.

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

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

Modified Paths

Diff

Modified: trunk/drivers/video/bf537-lq035.c (6437 => 6438)


--- trunk/drivers/video/bf537-lq035.c	2009-05-21 01:08:46 UTC (rev 6437)
+++ trunk/drivers/video/bf537-lq035.c	2009-05-21 02:12:40 UTC (rev 6438)
@@ -494,7 +494,7 @@
 	.transp 		= {0, 0, 0},
 };
 
-static struct fb_fix_screeninfo bfin_lq035_fb_fix __initdata = {
+static struct fb_fix_screeninfo bfin_lq035_fb_fix __devinitdata = {
 	.id 		= DRIVER_NAME,
 	.smem_len 	= ACTIVE_VIDEO_MEM_SIZE,
 	.type		= FB_TYPE_PACKED_PIXELS,

Modified: trunk/drivers/video/bfin_adv7393fb.c (6437 => 6438)


--- trunk/drivers/video/bfin_adv7393fb.c	2009-05-21 01:08:46 UTC (rev 6437)
+++ trunk/drivers/video/bfin_adv7393fb.c	2009-05-21 02:12:40 UTC (rev 6438)
@@ -108,7 +108,7 @@
 	.transp = {0, 0, 0},
 };
 
-static struct fb_fix_screeninfo bfin_adv7393_fb_fix __initdata = {
+static struct fb_fix_screeninfo bfin_adv7393_fb_fix __devinitdata = {
 	.id = "BFIN ADV7393",
 	.smem_len = 720 * 480 * 2,
 	.type = FB_TYPE_PACKED_PIXELS,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to