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/cirrusfb.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/cirrusfb.c')
-rw-r--r-- | drivers/video/cirrusfb.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c index bc67d05cad60..c3dbbe6e3acf 100644 --- a/drivers/video/cirrusfb.c +++ b/drivers/video/cirrusfb.c | |||
@@ -290,34 +290,34 @@ struct zorrocl { | |||
290 | zorro_id ramid2; /* Zorro ID of optional second RAM device */ | 290 | zorro_id ramid2; /* Zorro ID of optional second RAM device */ |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static const struct zorrocl zcl_sd64 __devinitconst = { | 293 | static const struct zorrocl zcl_sd64 = { |
294 | .type = BT_SD64, | 294 | .type = BT_SD64, |
295 | .ramid = ZORRO_PROD_HELFRICH_SD64_RAM, | 295 | .ramid = ZORRO_PROD_HELFRICH_SD64_RAM, |
296 | }; | 296 | }; |
297 | 297 | ||
298 | static const struct zorrocl zcl_piccolo __devinitconst = { | 298 | static const struct zorrocl zcl_piccolo = { |
299 | .type = BT_PICCOLO, | 299 | .type = BT_PICCOLO, |
300 | .ramid = ZORRO_PROD_HELFRICH_PICCOLO_RAM, | 300 | .ramid = ZORRO_PROD_HELFRICH_PICCOLO_RAM, |
301 | }; | 301 | }; |
302 | 302 | ||
303 | static const struct zorrocl zcl_picasso __devinitconst = { | 303 | static const struct zorrocl zcl_picasso = { |
304 | .type = BT_PICASSO, | 304 | .type = BT_PICASSO, |
305 | .ramid = ZORRO_PROD_VILLAGE_TRONIC_PICASSO_II_II_PLUS_RAM, | 305 | .ramid = ZORRO_PROD_VILLAGE_TRONIC_PICASSO_II_II_PLUS_RAM, |
306 | }; | 306 | }; |
307 | 307 | ||
308 | static const struct zorrocl zcl_spectrum __devinitconst = { | 308 | static const struct zorrocl zcl_spectrum = { |
309 | .type = BT_SPECTRUM, | 309 | .type = BT_SPECTRUM, |
310 | .ramid = ZORRO_PROD_GVP_EGS_28_24_SPECTRUM_RAM, | 310 | .ramid = ZORRO_PROD_GVP_EGS_28_24_SPECTRUM_RAM, |
311 | }; | 311 | }; |
312 | 312 | ||
313 | static const struct zorrocl zcl_picasso4_z3 __devinitconst = { | 313 | static const struct zorrocl zcl_picasso4_z3 = { |
314 | .type = BT_PICASSO4, | 314 | .type = BT_PICASSO4, |
315 | .regoffset = 0x00600000, | 315 | .regoffset = 0x00600000, |
316 | .ramsize = 4 * MB_, | 316 | .ramsize = 4 * MB_, |
317 | .ramoffset = 0x01000000, /* 0x02000000 for 64 MiB boards */ | 317 | .ramoffset = 0x01000000, /* 0x02000000 for 64 MiB boards */ |
318 | }; | 318 | }; |
319 | 319 | ||
320 | static const struct zorrocl zcl_picasso4_z2 __devinitconst = { | 320 | static const struct zorrocl zcl_picasso4_z2 = { |
321 | .type = BT_PICASSO4, | 321 | .type = BT_PICASSO4, |
322 | .regoffset = 0x10000, | 322 | .regoffset = 0x10000, |
323 | .ramid = ZORRO_PROD_VILLAGE_TRONIC_PICASSO_IV_Z2_RAM1, | 323 | .ramid = ZORRO_PROD_VILLAGE_TRONIC_PICASSO_IV_Z2_RAM1, |
@@ -325,7 +325,7 @@ static const struct zorrocl zcl_picasso4_z2 __devinitconst = { | |||
325 | }; | 325 | }; |
326 | 326 | ||
327 | 327 | ||
328 | static const struct zorro_device_id cirrusfb_zorro_table[] __devinitconst = { | 328 | static const struct zorro_device_id cirrusfb_zorro_table[] = { |
329 | { | 329 | { |
330 | .id = ZORRO_PROD_HELFRICH_SD64_REG, | 330 | .id = ZORRO_PROD_HELFRICH_SD64_REG, |
331 | .driver_data = (unsigned long)&zcl_sd64, | 331 | .driver_data = (unsigned long)&zcl_sd64, |
@@ -372,8 +372,8 @@ struct cirrusfb_info { | |||
372 | void (*unmap)(struct fb_info *info); | 372 | void (*unmap)(struct fb_info *info); |
373 | }; | 373 | }; |
374 | 374 | ||
375 | static bool noaccel __devinitdata; | 375 | static bool noaccel; |
376 | static char *mode_option __devinitdata = "640x480@60"; | 376 | static char *mode_option = "640x480@60"; |
377 | 377 | ||
378 | /****************************************************************************/ | 378 | /****************************************************************************/ |
379 | /**** BEGIN PROTOTYPES ******************************************************/ | 379 | /**** BEGIN PROTOTYPES ******************************************************/ |
@@ -1892,8 +1892,8 @@ static int release_io_ports; | |||
1892 | * based on the DRAM bandwidth bit and DRAM bank switching bit. This | 1892 | * based on the DRAM bandwidth bit and DRAM bank switching bit. This |
1893 | * works with 1MB, 2MB and 4MB configurations (which the Motorola boards | 1893 | * works with 1MB, 2MB and 4MB configurations (which the Motorola boards |
1894 | * seem to have. */ | 1894 | * seem to have. */ |
1895 | static unsigned int __devinit cirrusfb_get_memsize(struct fb_info *info, | 1895 | static unsigned int cirrusfb_get_memsize(struct fb_info *info, |
1896 | u8 __iomem *regbase) | 1896 | u8 __iomem *regbase) |
1897 | { | 1897 | { |
1898 | unsigned long mem; | 1898 | unsigned long mem; |
1899 | struct cirrusfb_info *cinfo = info->par; | 1899 | struct cirrusfb_info *cinfo = info->par; |
@@ -2003,7 +2003,7 @@ static struct fb_ops cirrusfb_ops = { | |||
2003 | .fb_imageblit = cirrusfb_imageblit, | 2003 | .fb_imageblit = cirrusfb_imageblit, |
2004 | }; | 2004 | }; |
2005 | 2005 | ||
2006 | static int __devinit cirrusfb_set_fbinfo(struct fb_info *info) | 2006 | static int cirrusfb_set_fbinfo(struct fb_info *info) |
2007 | { | 2007 | { |
2008 | struct cirrusfb_info *cinfo = info->par; | 2008 | struct cirrusfb_info *cinfo = info->par; |
2009 | struct fb_var_screeninfo *var = &info->var; | 2009 | struct fb_var_screeninfo *var = &info->var; |
@@ -2052,7 +2052,7 @@ static int __devinit cirrusfb_set_fbinfo(struct fb_info *info) | |||
2052 | return 0; | 2052 | return 0; |
2053 | } | 2053 | } |
2054 | 2054 | ||
2055 | static int __devinit cirrusfb_register(struct fb_info *info) | 2055 | static int cirrusfb_register(struct fb_info *info) |
2056 | { | 2056 | { |
2057 | struct cirrusfb_info *cinfo = info->par; | 2057 | struct cirrusfb_info *cinfo = info->par; |
2058 | int err; | 2058 | int err; |
@@ -2096,7 +2096,7 @@ err_dealloc_cmap: | |||
2096 | return err; | 2096 | return err; |
2097 | } | 2097 | } |
2098 | 2098 | ||
2099 | static void __devexit cirrusfb_cleanup(struct fb_info *info) | 2099 | static void cirrusfb_cleanup(struct fb_info *info) |
2100 | { | 2100 | { |
2101 | struct cirrusfb_info *cinfo = info->par; | 2101 | struct cirrusfb_info *cinfo = info->par; |
2102 | 2102 | ||
@@ -2109,8 +2109,8 @@ static void __devexit cirrusfb_cleanup(struct fb_info *info) | |||
2109 | } | 2109 | } |
2110 | 2110 | ||
2111 | #ifdef CONFIG_PCI | 2111 | #ifdef CONFIG_PCI |
2112 | static int __devinit cirrusfb_pci_register(struct pci_dev *pdev, | 2112 | static int cirrusfb_pci_register(struct pci_dev *pdev, |
2113 | const struct pci_device_id *ent) | 2113 | const struct pci_device_id *ent) |
2114 | { | 2114 | { |
2115 | struct cirrusfb_info *cinfo; | 2115 | struct cirrusfb_info *cinfo; |
2116 | struct fb_info *info; | 2116 | struct fb_info *info; |
@@ -2215,7 +2215,7 @@ err_out: | |||
2215 | return ret; | 2215 | return ret; |
2216 | } | 2216 | } |
2217 | 2217 | ||
2218 | static void __devexit cirrusfb_pci_unregister(struct pci_dev *pdev) | 2218 | static void cirrusfb_pci_unregister(struct pci_dev *pdev) |
2219 | { | 2219 | { |
2220 | struct fb_info *info = pci_get_drvdata(pdev); | 2220 | struct fb_info *info = pci_get_drvdata(pdev); |
2221 | 2221 | ||
@@ -2226,7 +2226,7 @@ static struct pci_driver cirrusfb_pci_driver = { | |||
2226 | .name = "cirrusfb", | 2226 | .name = "cirrusfb", |
2227 | .id_table = cirrusfb_pci_table, | 2227 | .id_table = cirrusfb_pci_table, |
2228 | .probe = cirrusfb_pci_register, | 2228 | .probe = cirrusfb_pci_register, |
2229 | .remove = __devexit_p(cirrusfb_pci_unregister), | 2229 | .remove = cirrusfb_pci_unregister, |
2230 | #ifdef CONFIG_PM | 2230 | #ifdef CONFIG_PM |
2231 | #if 0 | 2231 | #if 0 |
2232 | .suspend = cirrusfb_pci_suspend, | 2232 | .suspend = cirrusfb_pci_suspend, |
@@ -2237,8 +2237,8 @@ static struct pci_driver cirrusfb_pci_driver = { | |||
2237 | #endif /* CONFIG_PCI */ | 2237 | #endif /* CONFIG_PCI */ |
2238 | 2238 | ||
2239 | #ifdef CONFIG_ZORRO | 2239 | #ifdef CONFIG_ZORRO |
2240 | static int __devinit cirrusfb_zorro_register(struct zorro_dev *z, | 2240 | static int cirrusfb_zorro_register(struct zorro_dev *z, |
2241 | const struct zorro_device_id *ent) | 2241 | const struct zorro_device_id *ent) |
2242 | { | 2242 | { |
2243 | struct fb_info *info; | 2243 | struct fb_info *info; |
2244 | int error; | 2244 | int error; |
@@ -2352,7 +2352,7 @@ err_release_fb: | |||
2352 | return error; | 2352 | return error; |
2353 | } | 2353 | } |
2354 | 2354 | ||
2355 | void __devexit cirrusfb_zorro_unregister(struct zorro_dev *z) | 2355 | void cirrusfb_zorro_unregister(struct zorro_dev *z) |
2356 | { | 2356 | { |
2357 | struct fb_info *info = zorro_get_drvdata(z); | 2357 | struct fb_info *info = zorro_get_drvdata(z); |
2358 | 2358 | ||
@@ -2364,7 +2364,7 @@ static struct zorro_driver cirrusfb_zorro_driver = { | |||
2364 | .name = "cirrusfb", | 2364 | .name = "cirrusfb", |
2365 | .id_table = cirrusfb_zorro_table, | 2365 | .id_table = cirrusfb_zorro_table, |
2366 | .probe = cirrusfb_zorro_register, | 2366 | .probe = cirrusfb_zorro_register, |
2367 | .remove = __devexit_p(cirrusfb_zorro_unregister), | 2367 | .remove = cirrusfb_zorro_unregister, |
2368 | }; | 2368 | }; |
2369 | #endif /* CONFIG_ZORRO */ | 2369 | #endif /* CONFIG_ZORRO */ |
2370 | 2370 | ||