Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hitfb: fix sections

Since the drivers probe call was changed from .init.text to .devinit.text
in commit c2e13037e6794bd0d9de3f9ecabf5615f15c160b ("platform-drivers:
move probe to .devinit.text in drivers/video") the fb_fix_screeninfo and
fb_var_screeninfo structures must be changed from .init.data to
.devinit.data, too.

Also the drivers remove routine should be moved from .exit.text to
.devexit.text

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Henrik Kretzschmar and committed by
Linus Torvalds
e88a0f46 49c39b49

+4 -4
+4 -4
drivers/video/hitfb.c
··· 30 30 31 31 #define WIDTH 640 32 32 33 - static struct fb_var_screeninfo hitfb_var __initdata = { 33 + static struct fb_var_screeninfo hitfb_var __devinitdata = { 34 34 .activate = FB_ACTIVATE_NOW, 35 35 .height = -1, 36 36 .width = -1, 37 37 .vmode = FB_VMODE_NONINTERLACED, 38 38 }; 39 39 40 - static struct fb_fix_screeninfo hitfb_fix __initdata = { 40 + static struct fb_fix_screeninfo hitfb_fix __devinitdata = { 41 41 .id = "Hitachi HD64461", 42 42 .type = FB_TYPE_PACKED_PIXELS, 43 43 .accel = FB_ACCEL_NONE, ··· 417 417 return ret; 418 418 } 419 419 420 - static int __exit hitfb_remove(struct platform_device *dev) 420 + static int __devexit hitfb_remove(struct platform_device *dev) 421 421 { 422 422 struct fb_info *info = platform_get_drvdata(dev); 423 423 ··· 462 462 463 463 static struct platform_driver hitfb_driver = { 464 464 .probe = hitfb_probe, 465 - .remove = __exit_p(hitfb_remove), 465 + .remove = __devexit_p(hitfb_remove), 466 466 .driver = { 467 467 .name = "hitfb", 468 468 .owner = THIS_MODULE,