diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:07:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:01 -0500 |
commit | 48c68c4f1b542444f175a9e136febcecf3e704d8 (patch) | |
tree | d28f4f3b42643990c2908d27e9caf120f6234b73 /drivers/video/mbx/mbxfb.c | |
parent | 8590dbc79a0ff5d7ab16b2b1743684c241ae3c65 (diff) |
Drivers: video: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitdata,
__devinitconst, and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/mbx/mbxfb.c')
-rw-r--r-- | drivers/video/mbx/mbxfb.c | 18 |
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 | ||
82 | static struct fb_var_screeninfo mbxfb_default __devinitdata = { | 82 | static 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 | ||
105 | static struct fb_fix_screeninfo mbxfb_fix __devinitdata = { | 105 | static 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 | */ |
690 | static void __devinit setup_memc(struct fb_info *fbi) | 690 | static 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 | ||
750 | static void __devinit setup_graphics(struct fb_info *fbi) | 750 | static 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 | ||
784 | static void __devinit setup_display(struct fb_info *fbi) | 784 | static 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 | ||
798 | static void __devinit enable_controller(struct fb_info *fbi) | 798 | static 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 | ||
884 | static int __devinit mbxfb_probe(struct platform_device *dev) | 884 | static 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 | ||
1009 | static int __devexit mbxfb_remove(struct platform_device *dev) | 1009 | static 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 | ||
1039 | static struct platform_driver mbxfb_driver = { | 1039 | static 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 = { |