aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sunxvr2500.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/sunxvr2500.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/sunxvr2500.c')
-rw-r--r--drivers/video/sunxvr2500.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/sunxvr2500.c b/drivers/video/sunxvr2500.c
index 7fbcba86d1a2..843b6bab0483 100644
--- a/drivers/video/sunxvr2500.c
+++ b/drivers/video/sunxvr2500.c
@@ -29,7 +29,7 @@ struct s3d_info {
29 u32 pseudo_palette[16]; 29 u32 pseudo_palette[16];
30}; 30};
31 31
32static int __devinit s3d_get_props(struct s3d_info *sp) 32static int s3d_get_props(struct s3d_info *sp)
33{ 33{
34 sp->width = of_getintprop_default(sp->of_node, "width", 0); 34 sp->width = of_getintprop_default(sp->of_node, "width", 0);
35 sp->height = of_getintprop_default(sp->of_node, "height", 0); 35 sp->height = of_getintprop_default(sp->of_node, "height", 0);
@@ -70,7 +70,7 @@ static struct fb_ops s3d_ops = {
70 .fb_imageblit = cfb_imageblit, 70 .fb_imageblit = cfb_imageblit,
71}; 71};
72 72
73static int __devinit s3d_set_fbinfo(struct s3d_info *sp) 73static int s3d_set_fbinfo(struct s3d_info *sp)
74{ 74{
75 struct fb_info *info = sp->info; 75 struct fb_info *info = sp->info;
76 struct fb_var_screeninfo *var = &info->var; 76 struct fb_var_screeninfo *var = &info->var;
@@ -115,8 +115,8 @@ static int __devinit s3d_set_fbinfo(struct s3d_info *sp)
115 return 0; 115 return 0;
116} 116}
117 117
118static int __devinit s3d_pci_register(struct pci_dev *pdev, 118static int s3d_pci_register(struct pci_dev *pdev,
119 const struct pci_device_id *ent) 119 const struct pci_device_id *ent)
120{ 120{
121 struct fb_info *info; 121 struct fb_info *info;
122 struct s3d_info *sp; 122 struct s3d_info *sp;
@@ -219,7 +219,7 @@ err_out:
219 return err; 219 return err;
220} 220}
221 221
222static void __devexit s3d_pci_unregister(struct pci_dev *pdev) 222static void s3d_pci_unregister(struct pci_dev *pdev)
223{ 223{
224 struct fb_info *info = pci_get_drvdata(pdev); 224 struct fb_info *info = pci_get_drvdata(pdev);
225 struct s3d_info *sp = info->par; 225 struct s3d_info *sp = info->par;
@@ -251,7 +251,7 @@ static struct pci_driver s3d_driver = {
251 .name = "s3d", 251 .name = "s3d",
252 .id_table = s3d_pci_table, 252 .id_table = s3d_pci_table,
253 .probe = s3d_pci_register, 253 .probe = s3d_pci_register,
254 .remove = __devexit_p(s3d_pci_unregister), 254 .remove = s3d_pci_unregister,
255}; 255};
256 256
257static int __init s3d_init(void) 257static int __init s3d_init(void)