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/kyro | |
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/kyro')
-rw-r--r-- | drivers/video/kyro/fbdev.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/video/kyro/fbdev.c b/drivers/video/kyro/fbdev.c index acb9370fdb14..6157f74ac600 100644 --- a/drivers/video/kyro/fbdev.c +++ b/drivers/video/kyro/fbdev.c | |||
@@ -40,14 +40,14 @@ | |||
40 | #define KHZ2PICOS(a) (1000000000UL/(a)) | 40 | #define KHZ2PICOS(a) (1000000000UL/(a)) |
41 | 41 | ||
42 | /****************************************************************************/ | 42 | /****************************************************************************/ |
43 | static struct fb_fix_screeninfo kyro_fix __devinitdata = { | 43 | static struct fb_fix_screeninfo kyro_fix = { |
44 | .id = "ST Kyro", | 44 | .id = "ST Kyro", |
45 | .type = FB_TYPE_PACKED_PIXELS, | 45 | .type = FB_TYPE_PACKED_PIXELS, |
46 | .visual = FB_VISUAL_TRUECOLOR, | 46 | .visual = FB_VISUAL_TRUECOLOR, |
47 | .accel = FB_ACCEL_NONE, | 47 | .accel = FB_ACCEL_NONE, |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static struct fb_var_screeninfo kyro_var __devinitdata = { | 50 | static struct fb_var_screeninfo kyro_var = { |
51 | /* 640x480, 16bpp @ 60 Hz */ | 51 | /* 640x480, 16bpp @ 60 Hz */ |
52 | .xres = 640, | 52 | .xres = 640, |
53 | .yres = 480, | 53 | .yres = 480, |
@@ -81,18 +81,18 @@ typedef struct { | |||
81 | /* global graphics card info structure (one per card) */ | 81 | /* global graphics card info structure (one per card) */ |
82 | static device_info_t deviceInfo; | 82 | static device_info_t deviceInfo; |
83 | 83 | ||
84 | static char *mode_option __devinitdata = NULL; | 84 | static char *mode_option = NULL; |
85 | static int nopan __devinitdata = 0; | 85 | static int nopan = 0; |
86 | static int nowrap __devinitdata = 1; | 86 | static int nowrap = 1; |
87 | #ifdef CONFIG_MTRR | 87 | #ifdef CONFIG_MTRR |
88 | static int nomtrr __devinitdata = 0; | 88 | static int nomtrr = 0; |
89 | #endif | 89 | #endif |
90 | 90 | ||
91 | /* PCI driver prototypes */ | 91 | /* PCI driver prototypes */ |
92 | static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent); | 92 | static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent); |
93 | static void kyrofb_remove(struct pci_dev *pdev); | 93 | static void kyrofb_remove(struct pci_dev *pdev); |
94 | 94 | ||
95 | static struct fb_videomode kyro_modedb[] __devinitdata = { | 95 | static struct fb_videomode kyro_modedb[] = { |
96 | { | 96 | { |
97 | /* 640x350 @ 85Hz */ | 97 | /* 640x350 @ 85Hz */ |
98 | NULL, 85, 640, 350, KHZ2PICOS(31500), | 98 | NULL, 85, 640, 350, KHZ2PICOS(31500), |
@@ -653,7 +653,7 @@ static struct pci_driver kyrofb_pci_driver = { | |||
653 | .name = "kyrofb", | 653 | .name = "kyrofb", |
654 | .id_table = kyrofb_pci_tbl, | 654 | .id_table = kyrofb_pci_tbl, |
655 | .probe = kyrofb_probe, | 655 | .probe = kyrofb_probe, |
656 | .remove = __devexit_p(kyrofb_remove), | 656 | .remove = kyrofb_remove, |
657 | }; | 657 | }; |
658 | 658 | ||
659 | static struct fb_ops kyrofb_ops = { | 659 | static struct fb_ops kyrofb_ops = { |
@@ -667,8 +667,7 @@ static struct fb_ops kyrofb_ops = { | |||
667 | .fb_imageblit = cfb_imageblit, | 667 | .fb_imageblit = cfb_imageblit, |
668 | }; | 668 | }; |
669 | 669 | ||
670 | static int __devinit kyrofb_probe(struct pci_dev *pdev, | 670 | static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
671 | const struct pci_device_id *ent) | ||
672 | { | 671 | { |
673 | struct fb_info *info; | 672 | struct fb_info *info; |
674 | struct kyrofb_info *currentpar; | 673 | struct kyrofb_info *currentpar; |
@@ -754,7 +753,7 @@ out_unmap: | |||
754 | return -EINVAL; | 753 | return -EINVAL; |
755 | } | 754 | } |
756 | 755 | ||
757 | static void __devexit kyrofb_remove(struct pci_dev *pdev) | 756 | static void kyrofb_remove(struct pci_dev *pdev) |
758 | { | 757 | { |
759 | struct fb_info *info = pci_get_drvdata(pdev); | 758 | struct fb_info *info = pci_get_drvdata(pdev); |
760 | struct kyrofb_info *par = info->par; | 759 | struct kyrofb_info *par = info->par; |