* cobalt_lcdfb: fix section mismatch cobalt_lcdfb_fix
@ 2010-04-03 7:42 Yoichi Yuasa
0 siblings, 0 replies; only message in thread
From: Yoichi Yuasa @ 2010-04-03 7:42 UTC (permalink / raw)
To: linux-fbdev
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.
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
drivers/video/cobalt_lcdfb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c
index 5eb61b5..42fe155 100644
--- a/drivers/video/cobalt_lcdfb.c
+++ b/drivers/video/cobalt_lcdfb.c
@@ -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,
--
1.7.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-03 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-03 7:42 cobalt_lcdfb: fix section mismatch cobalt_lcdfb_fix Yoichi Yuasa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.