aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/mbx/mbxfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/mbx/mbxfb.c')
-rw-r--r--drivers/video/mbx/mbxfb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
index 6563e50413c1..0c1a874ffd2b 100644
--- a/drivers/video/mbx/mbxfb.c
+++ b/drivers/video/mbx/mbxfb.c
@@ -79,7 +79,7 @@ struct mbxfb_info {
79 79
80}; 80};
81 81
82static struct fb_var_screeninfo mbxfb_default __devinitdata = { 82static struct fb_var_screeninfo mbxfb_default = {
83 .xres = 640, 83 .xres = 640,
84 .yres = 480, 84 .yres = 480,
85 .xres_virtual = 640, 85 .xres_virtual = 640,
@@ -102,7 +102,7 @@ static struct fb_var_screeninfo mbxfb_default __devinitdata = {
102 .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 102 .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
103}; 103};
104 104
105static struct fb_fix_screeninfo mbxfb_fix __devinitdata = { 105static struct fb_fix_screeninfo mbxfb_fix = {
106 .id = "MBX", 106 .id = "MBX",
107 .type = FB_TYPE_PACKED_PIXELS, 107 .type = FB_TYPE_PACKED_PIXELS,
108 .visual = FB_VISUAL_TRUECOLOR, 108 .visual = FB_VISUAL_TRUECOLOR,
@@ -687,7 +687,7 @@ static struct fb_ops mbxfb_ops = {
687 Enable external SDRAM controller. Assume that all clocks are active 687 Enable external SDRAM controller. Assume that all clocks are active
688 by now. 688 by now.
689*/ 689*/
690static void __devinit setup_memc(struct fb_info *fbi) 690static void setup_memc(struct fb_info *fbi)
691{ 691{
692 unsigned long tmp; 692 unsigned long tmp;
693 int i; 693 int i;
@@ -747,7 +747,7 @@ static void enable_clocks(struct fb_info *fbi)
747 write_reg_dly(0x00000001, PIXCLKDIV); 747 write_reg_dly(0x00000001, PIXCLKDIV);
748} 748}
749 749
750static void __devinit setup_graphics(struct fb_info *fbi) 750static void setup_graphics(struct fb_info *fbi)
751{ 751{
752 unsigned long gsctrl; 752 unsigned long gsctrl;
753 unsigned long vscadr; 753 unsigned long vscadr;
@@ -781,7 +781,7 @@ static void __devinit setup_graphics(struct fb_info *fbi)
781 write_reg_dly(vscadr, VSCADR); 781 write_reg_dly(vscadr, VSCADR);
782} 782}
783 783
784static void __devinit setup_display(struct fb_info *fbi) 784static void setup_display(struct fb_info *fbi)
785{ 785{
786 unsigned long dsctrl = 0; 786 unsigned long dsctrl = 0;
787 787
@@ -795,7 +795,7 @@ static void __devinit setup_display(struct fb_info *fbi)
795 write_reg_dly((readl(DSCTRL) | DSCTRL_SYNCGEN_EN), DSCTRL); 795 write_reg_dly((readl(DSCTRL) | DSCTRL_SYNCGEN_EN), DSCTRL);
796} 796}
797 797
798static void __devinit enable_controller(struct fb_info *fbi) 798static void enable_controller(struct fb_info *fbi)
799{ 799{
800 u32 svctrl, shctrl; 800 u32 svctrl, shctrl;
801 801
@@ -881,7 +881,7 @@ static int mbxfb_resume(struct platform_device *dev)
881 881
882#define res_size(_r) (((_r)->end - (_r)->start) + 1) 882#define res_size(_r) (((_r)->end - (_r)->start) + 1)
883 883
884static int __devinit mbxfb_probe(struct platform_device *dev) 884static int mbxfb_probe(struct platform_device *dev)
885{ 885{
886 int ret; 886 int ret;
887 struct fb_info *fbi; 887 struct fb_info *fbi;
@@ -1006,7 +1006,7 @@ err1:
1006 return ret; 1006 return ret;
1007} 1007}
1008 1008
1009static int __devexit mbxfb_remove(struct platform_device *dev) 1009static int mbxfb_remove(struct platform_device *dev)
1010{ 1010{
1011 struct fb_info *fbi = platform_get_drvdata(dev); 1011 struct fb_info *fbi = platform_get_drvdata(dev);
1012 1012
@@ -1038,7 +1038,7 @@ static int __devexit mbxfb_remove(struct platform_device *dev)
1038 1038
1039static struct platform_driver mbxfb_driver = { 1039static struct platform_driver mbxfb_driver = {
1040 .probe = mbxfb_probe, 1040 .probe = mbxfb_probe,
1041 .remove = __devexit_p(mbxfb_remove), 1041 .remove = mbxfb_remove,
1042 .suspend = mbxfb_suspend, 1042 .suspend = mbxfb_suspend,
1043 .resume = mbxfb_resume, 1043 .resume = mbxfb_resume,
1044 .driver = { 1044 .driver = {