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/tdfxfb.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/tdfxfb.c')
| -rw-r--r-- | drivers/video/tdfxfb.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c index e026724a3a5..64bc28ba403 100644 --- a/drivers/video/tdfxfb.c +++ b/drivers/video/tdfxfb.c | |||
| @@ -100,7 +100,7 @@ static inline int mtrr_del(int reg, unsigned long base, | |||
| 100 | #define VOODOO3_MAX_PIXCLOCK 300000 | 100 | #define VOODOO3_MAX_PIXCLOCK 300000 |
| 101 | #define VOODOO5_MAX_PIXCLOCK 350000 | 101 | #define VOODOO5_MAX_PIXCLOCK 350000 |
| 102 | 102 | ||
| 103 | static struct fb_fix_screeninfo tdfx_fix __devinitdata = { | 103 | static struct fb_fix_screeninfo tdfx_fix = { |
| 104 | .type = FB_TYPE_PACKED_PIXELS, | 104 | .type = FB_TYPE_PACKED_PIXELS, |
| 105 | .visual = FB_VISUAL_PSEUDOCOLOR, | 105 | .visual = FB_VISUAL_PSEUDOCOLOR, |
| 106 | .ypanstep = 1, | 106 | .ypanstep = 1, |
| @@ -108,7 +108,7 @@ static struct fb_fix_screeninfo tdfx_fix __devinitdata = { | |||
| 108 | .accel = FB_ACCEL_3DFX_BANSHEE | 108 | .accel = FB_ACCEL_3DFX_BANSHEE |
| 109 | }; | 109 | }; |
| 110 | 110 | ||
| 111 | static struct fb_var_screeninfo tdfx_var __devinitdata = { | 111 | static struct fb_var_screeninfo tdfx_var = { |
| 112 | /* "640x480, 8 bpp @ 60 Hz */ | 112 | /* "640x480, 8 bpp @ 60 Hz */ |
| 113 | .xres = 640, | 113 | .xres = 640, |
| 114 | .yres = 480, | 114 | .yres = 480, |
| @@ -135,9 +135,8 @@ static struct fb_var_screeninfo tdfx_var __devinitdata = { | |||
| 135 | /* | 135 | /* |
| 136 | * PCI driver prototypes | 136 | * PCI driver prototypes |
| 137 | */ | 137 | */ |
| 138 | static int __devinit tdfxfb_probe(struct pci_dev *pdev, | 138 | static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id); |
| 139 | const struct pci_device_id *id); | 139 | static void tdfxfb_remove(struct pci_dev *pdev); |
| 140 | static void __devexit tdfxfb_remove(struct pci_dev *pdev); | ||
| 141 | 140 | ||
| 142 | static struct pci_device_id tdfxfb_id_table[] = { | 141 | static struct pci_device_id tdfxfb_id_table[] = { |
| 143 | { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE, | 142 | { PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE, |
| @@ -156,7 +155,7 @@ static struct pci_driver tdfxfb_driver = { | |||
| 156 | .name = "tdfxfb", | 155 | .name = "tdfxfb", |
| 157 | .id_table = tdfxfb_id_table, | 156 | .id_table = tdfxfb_id_table, |
| 158 | .probe = tdfxfb_probe, | 157 | .probe = tdfxfb_probe, |
| 159 | .remove = __devexit_p(tdfxfb_remove), | 158 | .remove = tdfxfb_remove, |
| 160 | }; | 159 | }; |
| 161 | 160 | ||
| 162 | MODULE_DEVICE_TABLE(pci, tdfxfb_id_table); | 161 | MODULE_DEVICE_TABLE(pci, tdfxfb_id_table); |
| @@ -167,9 +166,9 @@ MODULE_DEVICE_TABLE(pci, tdfxfb_id_table); | |||
| 167 | static int nopan; | 166 | static int nopan; |
| 168 | static int nowrap = 1; /* not implemented (yet) */ | 167 | static int nowrap = 1; /* not implemented (yet) */ |
| 169 | static int hwcursor = 1; | 168 | static int hwcursor = 1; |
| 170 | static char *mode_option __devinitdata; | 169 | static char *mode_option; |
| 171 | /* mtrr option */ | 170 | /* mtrr option */ |
| 172 | static bool nomtrr __devinitdata; | 171 | static bool nomtrr; |
| 173 | 172 | ||
| 174 | /* ------------------------------------------------------------------------- | 173 | /* ------------------------------------------------------------------------- |
| 175 | * Hardware-specific funcions | 174 | * Hardware-specific funcions |
| @@ -1279,8 +1278,8 @@ static int tdfxfb_ddc_getsda(void *data) | |||
| 1279 | return (0 != (tdfx_inl(par, VIDSERPARPORT) & DDC_SDA_IN)); | 1278 | return (0 != (tdfx_inl(par, VIDSERPARPORT) & DDC_SDA_IN)); |
| 1280 | } | 1279 | } |
| 1281 | 1280 | ||
| 1282 | static int __devinit tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, | 1281 | static int tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, const char *name, |
| 1283 | const char *name, struct device *dev) | 1282 | struct device *dev) |
| 1284 | { | 1283 | { |
| 1285 | int rc; | 1284 | int rc; |
| 1286 | 1285 | ||
| @@ -1308,8 +1307,8 @@ static int __devinit tdfxfb_setup_ddc_bus(struct tdfxfb_i2c_chan *chan, | |||
| 1308 | return rc; | 1307 | return rc; |
| 1309 | } | 1308 | } |
| 1310 | 1309 | ||
| 1311 | static int __devinit tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, | 1310 | static int tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, const char *name, |
| 1312 | const char *name, struct device *dev) | 1311 | struct device *dev) |
| 1313 | { | 1312 | { |
| 1314 | int rc; | 1313 | int rc; |
| 1315 | 1314 | ||
| @@ -1336,7 +1335,7 @@ static int __devinit tdfxfb_setup_i2c_bus(struct tdfxfb_i2c_chan *chan, | |||
| 1336 | return rc; | 1335 | return rc; |
| 1337 | } | 1336 | } |
| 1338 | 1337 | ||
| 1339 | static void __devinit tdfxfb_create_i2c_busses(struct fb_info *info) | 1338 | static void tdfxfb_create_i2c_busses(struct fb_info *info) |
| 1340 | { | 1339 | { |
| 1341 | struct tdfx_par *par = info->par; | 1340 | struct tdfx_par *par = info->par; |
| 1342 | 1341 | ||
| @@ -1388,8 +1387,7 @@ static int tdfxfb_probe_i2c_connector(struct tdfx_par *par, | |||
| 1388 | * Initializes and allocates resources for PCI device @pdev. | 1387 | * Initializes and allocates resources for PCI device @pdev. |
| 1389 | * | 1388 | * |
| 1390 | */ | 1389 | */ |
| 1391 | static int __devinit tdfxfb_probe(struct pci_dev *pdev, | 1390 | static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
| 1392 | const struct pci_device_id *id) | ||
| 1393 | { | 1391 | { |
| 1394 | struct tdfx_par *default_par; | 1392 | struct tdfx_par *default_par; |
| 1395 | struct fb_info *info; | 1393 | struct fb_info *info; |
| @@ -1626,7 +1624,7 @@ static void __init tdfxfb_setup(char *options) | |||
| 1626 | * lifetime for the PCI device @pdev. | 1624 | * lifetime for the PCI device @pdev. |
| 1627 | * | 1625 | * |
| 1628 | */ | 1626 | */ |
| 1629 | static void __devexit tdfxfb_remove(struct pci_dev *pdev) | 1627 | static void tdfxfb_remove(struct pci_dev *pdev) |
| 1630 | { | 1628 | { |
| 1631 | struct fb_info *info = pci_get_drvdata(pdev); | 1629 | struct fb_info *info = pci_get_drvdata(pdev); |
| 1632 | struct tdfx_par *par = info->par; | 1630 | struct tdfx_par *par = info->par; |
