* [PATCH 1/4] fbdev: fix section mismatches in q40fb.c
@ 2010-08-20 17:13 Henrik Kretzschmar
2010-09-13 18:14 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Henrik Kretzschmar @ 2010-08-20 17:13 UTC (permalink / raw)
To: linux-fbdev
Cc: arnaud.patard, u.kleine-koenig, jayakumar.lkml, henne, tj,
linux-kernel, linux-m68k
This patch moves the q40_fix and q40_var structures from .init.data
to .devinit.data.
This is where now the probe function resides, which only uses them.
Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
This patch is against Linus tree and is not compile tested.
It would be nice if someone with a m68k toolchain could test this
and tell if it works like expected.
drivers/video/q40fb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/q40fb.c b/drivers/video/q40fb.c
index fc32c32..f5a39f5 100644
--- a/drivers/video/q40fb.c
+++ b/drivers/video/q40fb.c
@@ -28,7 +28,7 @@
#define Q40_PHYS_SCREEN_ADDR 0xFE800000
-static struct fb_fix_screeninfo q40fb_fix __initdata = {
+static struct fb_fix_screeninfo q40fb_fix __devinitdata = {
.id = "Q40",
.smem_len = 1024*1024,
.type = FB_TYPE_PACKED_PIXELS,
@@ -37,7 +37,7 @@ static struct fb_fix_screeninfo q40fb_fix __initdata = {
.accel = FB_ACCEL_NONE,
};
-static struct fb_var_screeninfo q40fb_var __initdata = {
+static struct fb_var_screeninfo q40fb_var __devinitdata = {
.xres = 1024,
.yres = 512,
.xres_virtual = 1024,
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/4] fbdev: fix section mismatches in q40fb.c
2010-08-20 17:13 [PATCH 1/4] fbdev: fix section mismatches in q40fb.c Henrik Kretzschmar
@ 2010-09-13 18:14 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2010-09-13 18:14 UTC (permalink / raw)
To: Henrik Kretzschmar
Cc: linux-fbdev, arnaud.patard, u.kleine-koenig, jayakumar.lkml, tj,
linux-kernel, linux-m68k
On Fri, Aug 20, 2010 at 19:13, Henrik Kretzschmar
<henne@nachtwindheim.de> wrote:
> This patch moves the q40_fix and q40_var structures from .init.data
> to .devinit.data.
> This is where now the probe function resides, which only uses them.
>
> Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Applied
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-13 18:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 17:13 [PATCH 1/4] fbdev: fix section mismatches in q40fb.c Henrik Kretzschmar
2010-09-13 18:14 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).