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/pvr2fb.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/pvr2fb.c')
-rw-r--r-- | drivers/video/pvr2fb.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/video/pvr2fb.c b/drivers/video/pvr2fb.c index bcd44c32a2ed..df07860563e6 100644 --- a/drivers/video/pvr2fb.c +++ b/drivers/video/pvr2fb.c | |||
@@ -112,11 +112,11 @@ enum { VO_PAL, VO_NTSC, VO_VGA }; | |||
112 | enum { PAL_ARGB1555, PAL_RGB565, PAL_ARGB4444, PAL_ARGB8888 }; | 112 | enum { PAL_ARGB1555, PAL_RGB565, PAL_ARGB4444, PAL_ARGB8888 }; |
113 | 113 | ||
114 | struct pvr2_params { unsigned int val; char *name; }; | 114 | struct pvr2_params { unsigned int val; char *name; }; |
115 | static struct pvr2_params cables[] __devinitdata = { | 115 | static struct pvr2_params cables[] = { |
116 | { CT_VGA, "VGA" }, { CT_RGB, "RGB" }, { CT_COMPOSITE, "COMPOSITE" }, | 116 | { CT_VGA, "VGA" }, { CT_RGB, "RGB" }, { CT_COMPOSITE, "COMPOSITE" }, |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static struct pvr2_params outputs[] __devinitdata = { | 119 | static struct pvr2_params outputs[] = { |
120 | { VO_PAL, "PAL" }, { VO_NTSC, "NTSC" }, { VO_VGA, "VGA" }, | 120 | { VO_PAL, "PAL" }, { VO_NTSC, "NTSC" }, { VO_VGA, "VGA" }, |
121 | }; | 121 | }; |
122 | 122 | ||
@@ -145,7 +145,7 @@ static struct pvr2fb_par { | |||
145 | 145 | ||
146 | static struct fb_info *fb_info; | 146 | static struct fb_info *fb_info; |
147 | 147 | ||
148 | static struct fb_fix_screeninfo pvr2_fix __devinitdata = { | 148 | static struct fb_fix_screeninfo pvr2_fix = { |
149 | .id = "NEC PowerVR2", | 149 | .id = "NEC PowerVR2", |
150 | .type = FB_TYPE_PACKED_PIXELS, | 150 | .type = FB_TYPE_PACKED_PIXELS, |
151 | .visual = FB_VISUAL_TRUECOLOR, | 151 | .visual = FB_VISUAL_TRUECOLOR, |
@@ -154,7 +154,7 @@ static struct fb_fix_screeninfo pvr2_fix __devinitdata = { | |||
154 | .accel = FB_ACCEL_NONE, | 154 | .accel = FB_ACCEL_NONE, |
155 | }; | 155 | }; |
156 | 156 | ||
157 | static struct fb_var_screeninfo pvr2_var __devinitdata = { | 157 | static struct fb_var_screeninfo pvr2_var = { |
158 | .xres = 640, | 158 | .xres = 640, |
159 | .yres = 480, | 159 | .yres = 480, |
160 | .xres_virtual = 640, | 160 | .xres_virtual = 640, |
@@ -226,7 +226,7 @@ static struct fb_ops pvr2fb_ops = { | |||
226 | .fb_imageblit = cfb_imageblit, | 226 | .fb_imageblit = cfb_imageblit, |
227 | }; | 227 | }; |
228 | 228 | ||
229 | static struct fb_videomode pvr2_modedb[] __devinitdata = { | 229 | static struct fb_videomode pvr2_modedb[] = { |
230 | /* | 230 | /* |
231 | * Broadcast video modes (PAL and NTSC). I'm unfamiliar with | 231 | * Broadcast video modes (PAL and NTSC). I'm unfamiliar with |
232 | * PAL-M and PAL-N, but from what I've read both modes parallel PAL and | 232 | * PAL-M and PAL-N, but from what I've read both modes parallel PAL and |
@@ -256,7 +256,7 @@ static struct fb_videomode pvr2_modedb[] __devinitdata = { | |||
256 | #define DEFMODE_VGA 2 | 256 | #define DEFMODE_VGA 2 |
257 | 257 | ||
258 | static int defmode = DEFMODE_NTSC; | 258 | static int defmode = DEFMODE_NTSC; |
259 | static char *mode_option __devinitdata = NULL; | 259 | static char *mode_option = NULL; |
260 | 260 | ||
261 | static inline void pvr2fb_set_pal_type(unsigned int type) | 261 | static inline void pvr2fb_set_pal_type(unsigned int type) |
262 | { | 262 | { |
@@ -763,7 +763,7 @@ out_unmap: | |||
763 | * in for flexibility anyways. Who knows, maybe someone has tv-out on a | 763 | * in for flexibility anyways. Who knows, maybe someone has tv-out on a |
764 | * PCI-based version of these things ;-) | 764 | * PCI-based version of these things ;-) |
765 | */ | 765 | */ |
766 | static int __devinit pvr2fb_common_init(void) | 766 | static int pvr2fb_common_init(void) |
767 | { | 767 | { |
768 | struct pvr2fb_par *par = currentpar; | 768 | struct pvr2fb_par *par = currentpar; |
769 | unsigned long modememused, rev; | 769 | unsigned long modememused, rev; |
@@ -922,8 +922,8 @@ static void __exit pvr2fb_dc_exit(void) | |||
922 | #endif /* CONFIG_SH_DREAMCAST */ | 922 | #endif /* CONFIG_SH_DREAMCAST */ |
923 | 923 | ||
924 | #ifdef CONFIG_PCI | 924 | #ifdef CONFIG_PCI |
925 | static int __devinit pvr2fb_pci_probe(struct pci_dev *pdev, | 925 | static int pvr2fb_pci_probe(struct pci_dev *pdev, |
926 | const struct pci_device_id *ent) | 926 | const struct pci_device_id *ent) |
927 | { | 927 | { |
928 | int ret; | 928 | int ret; |
929 | 929 | ||
@@ -953,7 +953,7 @@ static int __devinit pvr2fb_pci_probe(struct pci_dev *pdev, | |||
953 | return pvr2fb_common_init(); | 953 | return pvr2fb_common_init(); |
954 | } | 954 | } |
955 | 955 | ||
956 | static void __devexit pvr2fb_pci_remove(struct pci_dev *pdev) | 956 | static void pvr2fb_pci_remove(struct pci_dev *pdev) |
957 | { | 957 | { |
958 | if (fb_info->screen_base) { | 958 | if (fb_info->screen_base) { |
959 | iounmap(fb_info->screen_base); | 959 | iounmap(fb_info->screen_base); |
@@ -967,7 +967,7 @@ static void __devexit pvr2fb_pci_remove(struct pci_dev *pdev) | |||
967 | pci_release_regions(pdev); | 967 | pci_release_regions(pdev); |
968 | } | 968 | } |
969 | 969 | ||
970 | static struct pci_device_id pvr2fb_pci_tbl[] __devinitdata = { | 970 | static struct pci_device_id pvr2fb_pci_tbl[] = { |
971 | { PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_NEON250, | 971 | { PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_NEON250, |
972 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, | 972 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, |
973 | { 0, }, | 973 | { 0, }, |
@@ -979,7 +979,7 @@ static struct pci_driver pvr2fb_pci_driver = { | |||
979 | .name = "pvr2fb", | 979 | .name = "pvr2fb", |
980 | .id_table = pvr2fb_pci_tbl, | 980 | .id_table = pvr2fb_pci_tbl, |
981 | .probe = pvr2fb_pci_probe, | 981 | .probe = pvr2fb_pci_probe, |
982 | .remove = __devexit_p(pvr2fb_pci_remove), | 982 | .remove = pvr2fb_pci_remove, |
983 | }; | 983 | }; |
984 | 984 | ||
985 | static int __init pvr2fb_pci_init(void) | 985 | static int __init pvr2fb_pci_init(void) |
@@ -993,8 +993,8 @@ static void __exit pvr2fb_pci_exit(void) | |||
993 | } | 993 | } |
994 | #endif /* CONFIG_PCI */ | 994 | #endif /* CONFIG_PCI */ |
995 | 995 | ||
996 | static int __devinit pvr2_get_param(const struct pvr2_params *p, const char *s, | 996 | static int pvr2_get_param(const struct pvr2_params *p, const char *s, int val, |
997 | int val, int size) | 997 | int size) |
998 | { | 998 | { |
999 | int i; | 999 | int i; |
1000 | 1000 | ||