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/cg14.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/cg14.c')
-rw-r--r-- | drivers/video/cg14.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/cg14.c b/drivers/video/cg14.c index f18895006627..ed3b8891e006 100644 --- a/drivers/video/cg14.c +++ b/drivers/video/cg14.c | |||
@@ -352,8 +352,8 @@ static int cg14_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) | |||
352 | * Initialisation | 352 | * Initialisation |
353 | */ | 353 | */ |
354 | 354 | ||
355 | static void __devinit cg14_init_fix(struct fb_info *info, int linebytes, | 355 | static void cg14_init_fix(struct fb_info *info, int linebytes, |
356 | struct device_node *dp) | 356 | struct device_node *dp) |
357 | { | 357 | { |
358 | const char *name = dp->name; | 358 | const char *name = dp->name; |
359 | 359 | ||
@@ -367,7 +367,7 @@ static void __devinit cg14_init_fix(struct fb_info *info, int linebytes, | |||
367 | info->fix.accel = FB_ACCEL_SUN_CG14; | 367 | info->fix.accel = FB_ACCEL_SUN_CG14; |
368 | } | 368 | } |
369 | 369 | ||
370 | static struct sbus_mmap_map __cg14_mmap_map[CG14_MMAP_ENTRIES] __devinitdata = { | 370 | static struct sbus_mmap_map __cg14_mmap_map[CG14_MMAP_ENTRIES] = { |
371 | { | 371 | { |
372 | .voff = CG14_REGS, | 372 | .voff = CG14_REGS, |
373 | .poff = 0x80000000, | 373 | .poff = 0x80000000, |
@@ -463,7 +463,7 @@ static void cg14_unmap_regs(struct platform_device *op, struct fb_info *info, | |||
463 | info->screen_base, info->fix.smem_len); | 463 | info->screen_base, info->fix.smem_len); |
464 | } | 464 | } |
465 | 465 | ||
466 | static int __devinit cg14_probe(struct platform_device *op) | 466 | static int cg14_probe(struct platform_device *op) |
467 | { | 467 | { |
468 | struct device_node *dp = op->dev.of_node; | 468 | struct device_node *dp = op->dev.of_node; |
469 | struct fb_info *info; | 469 | struct fb_info *info; |
@@ -571,7 +571,7 @@ out_err: | |||
571 | return err; | 571 | return err; |
572 | } | 572 | } |
573 | 573 | ||
574 | static int __devexit cg14_remove(struct platform_device *op) | 574 | static int cg14_remove(struct platform_device *op) |
575 | { | 575 | { |
576 | struct fb_info *info = dev_get_drvdata(&op->dev); | 576 | struct fb_info *info = dev_get_drvdata(&op->dev); |
577 | struct cg14_par *par = info->par; | 577 | struct cg14_par *par = info->par; |
@@ -603,7 +603,7 @@ static struct platform_driver cg14_driver = { | |||
603 | .of_match_table = cg14_match, | 603 | .of_match_table = cg14_match, |
604 | }, | 604 | }, |
605 | .probe = cg14_probe, | 605 | .probe = cg14_probe, |
606 | .remove = __devexit_p(cg14_remove), | 606 | .remove = cg14_remove, |
607 | }; | 607 | }; |
608 | 608 | ||
609 | static int __init cg14_init(void) | 609 | static int __init cg14_init(void) |