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/geode/lxfb_core.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/geode/lxfb_core.c')
-rw-r--r-- | drivers/video/geode/lxfb_core.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c index 416851ca8754..4dd7b5566962 100644 --- a/drivers/video/geode/lxfb_core.c +++ b/drivers/video/geode/lxfb_core.c | |||
@@ -35,7 +35,7 @@ static int vt_switch; | |||
35 | * we try to make it something sane - 640x480-60 is sane | 35 | * we try to make it something sane - 640x480-60 is sane |
36 | */ | 36 | */ |
37 | 37 | ||
38 | static struct fb_videomode geode_modedb[] __devinitdata = { | 38 | static struct fb_videomode geode_modedb[] = { |
39 | /* 640x480-60 */ | 39 | /* 640x480-60 */ |
40 | { NULL, 60, 640, 480, 39682, 48, 8, 25, 2, 88, 2, | 40 | { NULL, 60, 640, 480, 39682, 48, 8, 25, 2, 88, 2, |
41 | FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, | 41 | FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, |
@@ -219,15 +219,14 @@ static struct fb_videomode geode_modedb[] __devinitdata = { | |||
219 | #ifdef CONFIG_OLPC | 219 | #ifdef CONFIG_OLPC |
220 | #include <asm/olpc.h> | 220 | #include <asm/olpc.h> |
221 | 221 | ||
222 | static struct fb_videomode olpc_dcon_modedb[] __devinitdata = { | 222 | static struct fb_videomode olpc_dcon_modedb[] = { |
223 | /* The only mode the DCON has is 1200x900 */ | 223 | /* The only mode the DCON has is 1200x900 */ |
224 | { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3, | 224 | { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3, |
225 | FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, | 225 | FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, |
226 | FB_VMODE_NONINTERLACED, 0 } | 226 | FB_VMODE_NONINTERLACED, 0 } |
227 | }; | 227 | }; |
228 | 228 | ||
229 | static void __devinit get_modedb(struct fb_videomode **modedb, | 229 | static void get_modedb(struct fb_videomode **modedb, unsigned int *size) |
230 | unsigned int *size) | ||
231 | { | 230 | { |
232 | if (olpc_has_dcon()) { | 231 | if (olpc_has_dcon()) { |
233 | *modedb = (struct fb_videomode *) olpc_dcon_modedb; | 232 | *modedb = (struct fb_videomode *) olpc_dcon_modedb; |
@@ -239,8 +238,7 @@ static void __devinit get_modedb(struct fb_videomode **modedb, | |||
239 | } | 238 | } |
240 | 239 | ||
241 | #else | 240 | #else |
242 | static void __devinit get_modedb(struct fb_videomode **modedb, | 241 | static void get_modedb(struct fb_videomode **modedb, unsigned int *size) |
243 | unsigned int *size) | ||
244 | { | 242 | { |
245 | *modedb = (struct fb_videomode *) geode_modedb; | 243 | *modedb = (struct fb_videomode *) geode_modedb; |
246 | *size = ARRAY_SIZE(geode_modedb); | 244 | *size = ARRAY_SIZE(geode_modedb); |
@@ -336,8 +334,7 @@ static int lxfb_blank(int blank_mode, struct fb_info *info) | |||
336 | } | 334 | } |
337 | 335 | ||
338 | 336 | ||
339 | static int __devinit lxfb_map_video_memory(struct fb_info *info, | 337 | static int lxfb_map_video_memory(struct fb_info *info, struct pci_dev *dev) |
340 | struct pci_dev *dev) | ||
341 | { | 338 | { |
342 | struct lxfb_par *par = info->par; | 339 | struct lxfb_par *par = info->par; |
343 | int ret; | 340 | int ret; |
@@ -414,7 +411,7 @@ static struct fb_ops lxfb_ops = { | |||
414 | .fb_imageblit = cfb_imageblit, | 411 | .fb_imageblit = cfb_imageblit, |
415 | }; | 412 | }; |
416 | 413 | ||
417 | static struct fb_info * __devinit lxfb_init_fbinfo(struct device *dev) | 414 | static struct fb_info *lxfb_init_fbinfo(struct device *dev) |
418 | { | 415 | { |
419 | struct lxfb_par *par; | 416 | struct lxfb_par *par; |
420 | struct fb_info *info; | 417 | struct fb_info *info; |
@@ -498,8 +495,7 @@ static int lxfb_resume(struct pci_dev *pdev) | |||
498 | #define lxfb_resume NULL | 495 | #define lxfb_resume NULL |
499 | #endif | 496 | #endif |
500 | 497 | ||
501 | static int __devinit lxfb_probe(struct pci_dev *pdev, | 498 | static int lxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
502 | const struct pci_device_id *id) | ||
503 | { | 499 | { |
504 | struct lxfb_par *par; | 500 | struct lxfb_par *par; |
505 | struct fb_info *info; | 501 | struct fb_info *info; |
@@ -590,7 +586,7 @@ err: | |||
590 | return ret; | 586 | return ret; |
591 | } | 587 | } |
592 | 588 | ||
593 | static void __devexit lxfb_remove(struct pci_dev *pdev) | 589 | static void lxfb_remove(struct pci_dev *pdev) |
594 | { | 590 | { |
595 | struct fb_info *info = pci_get_drvdata(pdev); | 591 | struct fb_info *info = pci_get_drvdata(pdev); |
596 | struct lxfb_par *par = info->par; | 592 | struct lxfb_par *par = info->par; |