diff options
author | Henrik Kretzschmar <henne@nachtwindheim.de> | 2010-05-24 17:33:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 11:07:08 -0400 |
commit | 3cc04971661e37e7de6fbf9808ede554b5e1cb4e (patch) | |
tree | d96cec3ad6f66913fedca5f47cde02980d1e8d88 /drivers/video/vfb.c | |
parent | e217e6e39f62e47f7e659b715235dbd57df480f8 (diff) |
fbdev: section cleanup in vfb
Fix up the section in the vfb driver, by moving the variables vfb_default
and vfb_fix from .init.data to .devinit.data
This fixes the following warnings issued by modpost:
WARNING: drivers/video/vfb.o(.devinit.text+0xf8): Section mismatch in reference from the function vfb_probe() to the variable .init.data:vfb_default
The function __devinit vfb_probe() references
a variable __initdata vfb_default.
If vfb_default is only used by vfb_probe then
annotate vfb_default with a matching annotation.
WARNING: drivers/video/vfb.o(.devinit.text+0x114): Section mismatch in reference from the function vfb_probe() to the variable .init.data:vfb_fix
The function __devinit vfb_probe() references
a variable __initdata vfb_fix.
If vfb_fix is only used by vfb_probe then
annotate vfb_fix with a matching annotation.
Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: <stable@kernel.org> [if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/vfb.c')
-rw-r--r-- | drivers/video/vfb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/vfb.c b/drivers/video/vfb.c index 9b5532b4de35..bc67251f1a2f 100644 --- a/drivers/video/vfb.c +++ b/drivers/video/vfb.c | |||
@@ -78,7 +78,7 @@ static void rvfree(void *mem, unsigned long size) | |||
78 | vfree(mem); | 78 | vfree(mem); |
79 | } | 79 | } |
80 | 80 | ||
81 | static struct fb_var_screeninfo vfb_default __initdata = { | 81 | static struct fb_var_screeninfo vfb_default __devinitdata = { |
82 | .xres = 640, | 82 | .xres = 640, |
83 | .yres = 480, | 83 | .yres = 480, |
84 | .xres_virtual = 640, | 84 | .xres_virtual = 640, |
@@ -100,7 +100,7 @@ static struct fb_var_screeninfo vfb_default __initdata = { | |||
100 | .vmode = FB_VMODE_NONINTERLACED, | 100 | .vmode = FB_VMODE_NONINTERLACED, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | static struct fb_fix_screeninfo vfb_fix __initdata = { | 103 | static struct fb_fix_screeninfo vfb_fix __devinitdata = { |
104 | .id = "Virtual FB", | 104 | .id = "Virtual FB", |
105 | .type = FB_TYPE_PACKED_PIXELS, | 105 | .type = FB_TYPE_PACKED_PIXELS, |
106 | .visual = FB_VISUAL_PSEUDOCOLOR, | 106 | .visual = FB_VISUAL_PSEUDOCOLOR, |