aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3fb.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:07:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:01 -0500
commit48c68c4f1b542444f175a9e136febcecf3e704d8 (patch)
treed28f4f3b42643990c2908d27e9caf120f6234b73 /drivers/video/s3fb.c
parent8590dbc79a0ff5d7ab16b2b1743684c241ae3c65 (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/s3fb.c')
-rw-r--r--drivers/video/s3fb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/video/s3fb.c b/drivers/video/s3fb.c
index 1d007366b917..47ca86c5c6c0 100644
--- a/drivers/video/s3fb.c
+++ b/drivers/video/s3fb.c
@@ -153,10 +153,10 @@ static const struct svga_timing_regs s3_timing_regs = {
153/* Module parameters */ 153/* Module parameters */
154 154
155 155
156static char *mode_option __devinitdata; 156static char *mode_option;
157 157
158#ifdef CONFIG_MTRR 158#ifdef CONFIG_MTRR
159static int mtrr __devinitdata = 1; 159static int mtrr = 1;
160#endif 160#endif
161 161
162static int fasttext = 1; 162static int fasttext = 1;
@@ -255,7 +255,7 @@ static int s3fb_ddc_getsda(void *data)
255 return !!(s3fb_ddc_read(par) & DDC_SDA_IN); 255 return !!(s3fb_ddc_read(par) & DDC_SDA_IN);
256} 256}
257 257
258static int __devinit s3fb_setup_ddc_bus(struct fb_info *info) 258static int s3fb_setup_ddc_bus(struct fb_info *info)
259{ 259{
260 struct s3fb_info *par = info->par; 260 struct s3fb_info *par = info->par;
261 261
@@ -1066,7 +1066,7 @@ static struct fb_ops s3fb_ops = {
1066 1066
1067/* ------------------------------------------------------------------------- */ 1067/* ------------------------------------------------------------------------- */
1068 1068
1069static int __devinit s3_identification(struct s3fb_info *par) 1069static int s3_identification(struct s3fb_info *par)
1070{ 1070{
1071 int chip = par->chip; 1071 int chip = par->chip;
1072 1072
@@ -1122,7 +1122,7 @@ static int __devinit s3_identification(struct s3fb_info *par)
1122 1122
1123/* PCI probe */ 1123/* PCI probe */
1124 1124
1125static int __devinit s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 1125static int s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
1126{ 1126{
1127 struct pci_bus_region bus_reg; 1127 struct pci_bus_region bus_reg;
1128 struct resource vga_res; 1128 struct resource vga_res;
@@ -1403,7 +1403,7 @@ err_enable_device:
1403 1403
1404/* PCI remove */ 1404/* PCI remove */
1405 1405
1406static void __devexit s3_pci_remove(struct pci_dev *dev) 1406static void s3_pci_remove(struct pci_dev *dev)
1407{ 1407{
1408 struct fb_info *info = pci_get_drvdata(dev); 1408 struct fb_info *info = pci_get_drvdata(dev);
1409 struct s3fb_info __maybe_unused *par = info->par; 1409 struct s3fb_info __maybe_unused *par = info->par;
@@ -1509,7 +1509,7 @@ static int s3_pci_resume(struct pci_dev* dev)
1509 1509
1510/* List of boards that we are trying to support */ 1510/* List of boards that we are trying to support */
1511 1511
1512static struct pci_device_id s3_devices[] __devinitdata = { 1512static struct pci_device_id s3_devices[] = {
1513 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8810), .driver_data = CHIP_XXX_TRIO}, 1513 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8810), .driver_data = CHIP_XXX_TRIO},
1514 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8811), .driver_data = CHIP_XXX_TRIO}, 1514 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8811), .driver_data = CHIP_XXX_TRIO},
1515 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8812), .driver_data = CHIP_M65_AURORA64VP}, 1515 {PCI_DEVICE(PCI_VENDOR_ID_S3, 0x8812), .driver_data = CHIP_M65_AURORA64VP},
@@ -1537,7 +1537,7 @@ static struct pci_driver s3fb_pci_driver = {
1537 .name = "s3fb", 1537 .name = "s3fb",
1538 .id_table = s3_devices, 1538 .id_table = s3_devices,
1539 .probe = s3_pci_probe, 1539 .probe = s3_pci_probe,
1540 .remove = __devexit_p(s3_pci_remove), 1540 .remove = s3_pci_remove,
1541 .suspend = s3_pci_suspend, 1541 .suspend = s3_pci_suspend,
1542 .resume = s3_pci_resume, 1542 .resume = s3_pci_resume,
1543}; 1543};