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/fm2fb.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/fm2fb.c')
-rw-r--r-- | drivers/video/fm2fb.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/video/fm2fb.c b/drivers/video/fm2fb.c index d0533b7aad79..c99c9671302b 100644 --- a/drivers/video/fm2fb.c +++ b/drivers/video/fm2fb.c | |||
@@ -127,7 +127,7 @@ | |||
127 | 127 | ||
128 | static volatile unsigned char *fm2fb_reg; | 128 | static volatile unsigned char *fm2fb_reg; |
129 | 129 | ||
130 | static struct fb_fix_screeninfo fb_fix __devinitdata = { | 130 | static struct fb_fix_screeninfo fb_fix = { |
131 | .smem_len = FRAMEMASTER_REG, | 131 | .smem_len = FRAMEMASTER_REG, |
132 | .type = FB_TYPE_PACKED_PIXELS, | 132 | .type = FB_TYPE_PACKED_PIXELS, |
133 | .visual = FB_VISUAL_TRUECOLOR, | 133 | .visual = FB_VISUAL_TRUECOLOR, |
@@ -136,12 +136,12 @@ static struct fb_fix_screeninfo fb_fix __devinitdata = { | |||
136 | .accel = FB_ACCEL_NONE, | 136 | .accel = FB_ACCEL_NONE, |
137 | }; | 137 | }; |
138 | 138 | ||
139 | static int fm2fb_mode __devinitdata = -1; | 139 | static int fm2fb_mode = -1; |
140 | 140 | ||
141 | #define FM2FB_MODE_PAL 0 | 141 | #define FM2FB_MODE_PAL 0 |
142 | #define FM2FB_MODE_NTSC 1 | 142 | #define FM2FB_MODE_NTSC 1 |
143 | 143 | ||
144 | static struct fb_var_screeninfo fb_var_modes[] __devinitdata = { | 144 | static struct fb_var_screeninfo fb_var_modes[] = { |
145 | { | 145 | { |
146 | /* 768 x 576, 32 bpp (PAL) */ | 146 | /* 768 x 576, 32 bpp (PAL) */ |
147 | 768, 576, 768, 576, 0, 0, 32, 0, | 147 | 768, 576, 768, 576, 0, 0, 32, 0, |
@@ -211,10 +211,9 @@ static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, | |||
211 | * Initialisation | 211 | * Initialisation |
212 | */ | 212 | */ |
213 | 213 | ||
214 | static int __devinit fm2fb_probe(struct zorro_dev *z, | 214 | static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id); |
215 | const struct zorro_device_id *id); | ||
216 | 215 | ||
217 | static struct zorro_device_id fm2fb_devices[] __devinitdata = { | 216 | static struct zorro_device_id fm2fb_devices[] = { |
218 | { ZORRO_PROD_BSC_FRAMEMASTER_II }, | 217 | { ZORRO_PROD_BSC_FRAMEMASTER_II }, |
219 | { ZORRO_PROD_HELFRICH_RAINBOW_II }, | 218 | { ZORRO_PROD_HELFRICH_RAINBOW_II }, |
220 | { 0 } | 219 | { 0 } |
@@ -227,8 +226,7 @@ static struct zorro_driver fm2fb_driver = { | |||
227 | .probe = fm2fb_probe, | 226 | .probe = fm2fb_probe, |
228 | }; | 227 | }; |
229 | 228 | ||
230 | static int __devinit fm2fb_probe(struct zorro_dev *z, | 229 | static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id) |
231 | const struct zorro_device_id *id) | ||
232 | { | 230 | { |
233 | struct fb_info *info; | 231 | struct fb_info *info; |
234 | unsigned long *ptr; | 232 | unsigned long *ptr; |