aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/i740fb.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/i740fb.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/i740fb.c')
-rw-r--r--drivers/video/i740fb.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/video/i740fb.c b/drivers/video/i740fb.c
index ff3f8808e4e9..cfd0c52e8f73 100644
--- a/drivers/video/i740fb.c
+++ b/drivers/video/i740fb.c
@@ -33,10 +33,10 @@
33 33
34#include "i740_reg.h" 34#include "i740_reg.h"
35 35
36static char *mode_option __devinitdata; 36static char *mode_option;
37 37
38#ifdef CONFIG_MTRR 38#ifdef CONFIG_MTRR
39static int mtrr __devinitdata = 1; 39static int mtrr = 1;
40#endif 40#endif
41 41
42struct i740fb_par { 42struct i740fb_par {
@@ -91,7 +91,7 @@ struct i740fb_par {
91#define DACSPEED24_SD 128 91#define DACSPEED24_SD 128
92#define DACSPEED32 86 92#define DACSPEED32 86
93 93
94static struct fb_fix_screeninfo i740fb_fix __devinitdata = { 94static struct fb_fix_screeninfo i740fb_fix = {
95 .id = "i740fb", 95 .id = "i740fb",
96 .type = FB_TYPE_PACKED_PIXELS, 96 .type = FB_TYPE_PACKED_PIXELS,
97 .visual = FB_VISUAL_TRUECOLOR, 97 .visual = FB_VISUAL_TRUECOLOR,
@@ -163,7 +163,7 @@ static int i740fb_ddc_getsda(void *data)
163 return !!(i740inreg(par, XRX, REG_DDC_STATE) & DDC_SDA); 163 return !!(i740inreg(par, XRX, REG_DDC_STATE) & DDC_SDA);
164} 164}
165 165
166static int __devinit i740fb_setup_ddc_bus(struct fb_info *info) 166static int i740fb_setup_ddc_bus(struct fb_info *info)
167{ 167{
168 struct i740fb_par *par = info->par; 168 struct i740fb_par *par = info->par;
169 169
@@ -1007,8 +1007,7 @@ static struct fb_ops i740fb_ops = {
1007 1007
1008/* ------------------------------------------------------------------------- */ 1008/* ------------------------------------------------------------------------- */
1009 1009
1010static int __devinit i740fb_probe(struct pci_dev *dev, 1010static int i740fb_probe(struct pci_dev *dev, const struct pci_device_id *ent)
1011 const struct pci_device_id *ent)
1012{ 1011{
1013 struct fb_info *info; 1012 struct fb_info *info;
1014 struct i740fb_par *par; 1013 struct i740fb_par *par;
@@ -1174,7 +1173,7 @@ err_enable_device:
1174 return ret; 1173 return ret;
1175} 1174}
1176 1175
1177static void __devexit i740fb_remove(struct pci_dev *dev) 1176static void i740fb_remove(struct pci_dev *dev)
1178{ 1177{
1179 struct fb_info *info = pci_get_drvdata(dev); 1178 struct fb_info *info = pci_get_drvdata(dev);
1180 1179
@@ -1275,7 +1274,7 @@ static struct pci_driver i740fb_driver = {
1275 .name = "i740fb", 1274 .name = "i740fb",
1276 .id_table = i740fb_id_table, 1275 .id_table = i740fb_id_table,
1277 .probe = i740fb_probe, 1276 .probe = i740fb_probe,
1278 .remove = __devexit_p(i740fb_remove), 1277 .remove = i740fb_remove,
1279 .suspend = i740fb_suspend, 1278 .suspend = i740fb_suspend,
1280 .resume = i740fb_resume, 1279 .resume = i740fb_resume,
1281}; 1280};