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/riva | |
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/riva')
-rw-r--r-- | drivers/video/riva/fbdev.c | 45 | ||||
-rw-r--r-- | drivers/video/riva/rivafb-i2c.c | 9 |
2 files changed, 26 insertions, 28 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index 90df1a60bd16..9536715b5a1b 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c | |||
@@ -205,28 +205,28 @@ MODULE_DEVICE_TABLE(pci, rivafb_pci_tbl); | |||
205 | * ------------------------------------------------------------------------- */ | 205 | * ------------------------------------------------------------------------- */ |
206 | 206 | ||
207 | /* command line data, set in rivafb_setup() */ | 207 | /* command line data, set in rivafb_setup() */ |
208 | static int flatpanel __devinitdata = -1; /* Autodetect later */ | 208 | static int flatpanel = -1; /* Autodetect later */ |
209 | static int forceCRTC __devinitdata = -1; | 209 | static int forceCRTC = -1; |
210 | static bool noaccel __devinitdata = 0; | 210 | static bool noaccel = 0; |
211 | #ifdef CONFIG_MTRR | 211 | #ifdef CONFIG_MTRR |
212 | static bool nomtrr __devinitdata = 0; | 212 | static bool nomtrr = 0; |
213 | #endif | 213 | #endif |
214 | #ifdef CONFIG_PMAC_BACKLIGHT | 214 | #ifdef CONFIG_PMAC_BACKLIGHT |
215 | static int backlight __devinitdata = 1; | 215 | static int backlight = 1; |
216 | #else | 216 | #else |
217 | static int backlight __devinitdata = 0; | 217 | static int backlight = 0; |
218 | #endif | 218 | #endif |
219 | 219 | ||
220 | static char *mode_option __devinitdata = NULL; | 220 | static char *mode_option = NULL; |
221 | static bool strictmode = 0; | 221 | static bool strictmode = 0; |
222 | 222 | ||
223 | static struct fb_fix_screeninfo __devinitdata rivafb_fix = { | 223 | static struct fb_fix_screeninfo rivafb_fix = { |
224 | .type = FB_TYPE_PACKED_PIXELS, | 224 | .type = FB_TYPE_PACKED_PIXELS, |
225 | .xpanstep = 1, | 225 | .xpanstep = 1, |
226 | .ypanstep = 1, | 226 | .ypanstep = 1, |
227 | }; | 227 | }; |
228 | 228 | ||
229 | static struct fb_var_screeninfo __devinitdata rivafb_default_var = { | 229 | static struct fb_var_screeninfo rivafb_default_var = { |
230 | .xres = 640, | 230 | .xres = 640, |
231 | .yres = 480, | 231 | .yres = 480, |
232 | .xres_virtual = 640, | 232 | .xres_virtual = 640, |
@@ -1709,7 +1709,7 @@ static struct fb_ops riva_fb_ops = { | |||
1709 | .fb_sync = rivafb_sync, | 1709 | .fb_sync = rivafb_sync, |
1710 | }; | 1710 | }; |
1711 | 1711 | ||
1712 | static int __devinit riva_set_fbinfo(struct fb_info *info) | 1712 | static int riva_set_fbinfo(struct fb_info *info) |
1713 | { | 1713 | { |
1714 | unsigned int cmap_len; | 1714 | unsigned int cmap_len; |
1715 | struct riva_par *par = info->par; | 1715 | struct riva_par *par = info->par; |
@@ -1747,7 +1747,7 @@ static int __devinit riva_set_fbinfo(struct fb_info *info) | |||
1747 | } | 1747 | } |
1748 | 1748 | ||
1749 | #ifdef CONFIG_PPC_OF | 1749 | #ifdef CONFIG_PPC_OF |
1750 | static int __devinit riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | 1750 | static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) |
1751 | { | 1751 | { |
1752 | struct riva_par *par = info->par; | 1752 | struct riva_par *par = info->par; |
1753 | struct device_node *dp; | 1753 | struct device_node *dp; |
@@ -1780,7 +1780,7 @@ static int __devinit riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | |||
1780 | #endif /* CONFIG_PPC_OF */ | 1780 | #endif /* CONFIG_PPC_OF */ |
1781 | 1781 | ||
1782 | #if defined(CONFIG_FB_RIVA_I2C) && !defined(CONFIG_PPC_OF) | 1782 | #if defined(CONFIG_FB_RIVA_I2C) && !defined(CONFIG_PPC_OF) |
1783 | static int __devinit riva_get_EDID_i2c(struct fb_info *info) | 1783 | static int riva_get_EDID_i2c(struct fb_info *info) |
1784 | { | 1784 | { |
1785 | struct riva_par *par = info->par; | 1785 | struct riva_par *par = info->par; |
1786 | struct fb_var_screeninfo var; | 1786 | struct fb_var_screeninfo var; |
@@ -1803,8 +1803,8 @@ static int __devinit riva_get_EDID_i2c(struct fb_info *info) | |||
1803 | } | 1803 | } |
1804 | #endif /* CONFIG_FB_RIVA_I2C */ | 1804 | #endif /* CONFIG_FB_RIVA_I2C */ |
1805 | 1805 | ||
1806 | static void __devinit riva_update_default_var(struct fb_var_screeninfo *var, | 1806 | static void riva_update_default_var(struct fb_var_screeninfo *var, |
1807 | struct fb_info *info) | 1807 | struct fb_info *info) |
1808 | { | 1808 | { |
1809 | struct fb_monspecs *specs = &info->monspecs; | 1809 | struct fb_monspecs *specs = &info->monspecs; |
1810 | struct fb_videomode modedb; | 1810 | struct fb_videomode modedb; |
@@ -1836,7 +1836,7 @@ static void __devinit riva_update_default_var(struct fb_var_screeninfo *var, | |||
1836 | } | 1836 | } |
1837 | 1837 | ||
1838 | 1838 | ||
1839 | static void __devinit riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) | 1839 | static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) |
1840 | { | 1840 | { |
1841 | NVTRACE_ENTER(); | 1841 | NVTRACE_ENTER(); |
1842 | #ifdef CONFIG_PPC_OF | 1842 | #ifdef CONFIG_PPC_OF |
@@ -1850,7 +1850,7 @@ static void __devinit riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) | |||
1850 | } | 1850 | } |
1851 | 1851 | ||
1852 | 1852 | ||
1853 | static void __devinit riva_get_edidinfo(struct fb_info *info) | 1853 | static void riva_get_edidinfo(struct fb_info *info) |
1854 | { | 1854 | { |
1855 | struct fb_var_screeninfo *var = &rivafb_default_var; | 1855 | struct fb_var_screeninfo *var = &rivafb_default_var; |
1856 | struct riva_par *par = info->par; | 1856 | struct riva_par *par = info->par; |
@@ -1871,7 +1871,7 @@ static void __devinit riva_get_edidinfo(struct fb_info *info) | |||
1871 | * | 1871 | * |
1872 | * ------------------------------------------------------------------------- */ | 1872 | * ------------------------------------------------------------------------- */ |
1873 | 1873 | ||
1874 | static u32 __devinit riva_get_arch(struct pci_dev *pd) | 1874 | static u32 riva_get_arch(struct pci_dev *pd) |
1875 | { | 1875 | { |
1876 | u32 arch = 0; | 1876 | u32 arch = 0; |
1877 | 1877 | ||
@@ -1909,8 +1909,7 @@ static u32 __devinit riva_get_arch(struct pci_dev *pd) | |||
1909 | return arch; | 1909 | return arch; |
1910 | } | 1910 | } |
1911 | 1911 | ||
1912 | static int __devinit rivafb_probe(struct pci_dev *pd, | 1912 | static int rivafb_probe(struct pci_dev *pd, const struct pci_device_id *ent) |
1913 | const struct pci_device_id *ent) | ||
1914 | { | 1913 | { |
1915 | struct riva_par *default_par; | 1914 | struct riva_par *default_par; |
1916 | struct fb_info *info; | 1915 | struct fb_info *info; |
@@ -2105,7 +2104,7 @@ err_ret: | |||
2105 | return ret; | 2104 | return ret; |
2106 | } | 2105 | } |
2107 | 2106 | ||
2108 | static void __devexit rivafb_remove(struct pci_dev *pd) | 2107 | static void rivafb_remove(struct pci_dev *pd) |
2109 | { | 2108 | { |
2110 | struct fb_info *info = pci_get_drvdata(pd); | 2109 | struct fb_info *info = pci_get_drvdata(pd); |
2111 | struct riva_par *par = info->par; | 2110 | struct riva_par *par = info->par; |
@@ -2145,7 +2144,7 @@ static void __devexit rivafb_remove(struct pci_dev *pd) | |||
2145 | * ------------------------------------------------------------------------- */ | 2144 | * ------------------------------------------------------------------------- */ |
2146 | 2145 | ||
2147 | #ifndef MODULE | 2146 | #ifndef MODULE |
2148 | static int __devinit rivafb_setup(char *options) | 2147 | static int rivafb_setup(char *options) |
2149 | { | 2148 | { |
2150 | char *this_opt; | 2149 | char *this_opt; |
2151 | 2150 | ||
@@ -2186,7 +2185,7 @@ static struct pci_driver rivafb_driver = { | |||
2186 | .name = "rivafb", | 2185 | .name = "rivafb", |
2187 | .id_table = rivafb_pci_tbl, | 2186 | .id_table = rivafb_pci_tbl, |
2188 | .probe = rivafb_probe, | 2187 | .probe = rivafb_probe, |
2189 | .remove = __devexit_p(rivafb_remove), | 2188 | .remove = rivafb_remove, |
2190 | }; | 2189 | }; |
2191 | 2190 | ||
2192 | 2191 | ||
@@ -2197,7 +2196,7 @@ static struct pci_driver rivafb_driver = { | |||
2197 | * | 2196 | * |
2198 | * ------------------------------------------------------------------------- */ | 2197 | * ------------------------------------------------------------------------- */ |
2199 | 2198 | ||
2200 | static int __devinit rivafb_init(void) | 2199 | static int rivafb_init(void) |
2201 | { | 2200 | { |
2202 | #ifndef MODULE | 2201 | #ifndef MODULE |
2203 | char *option = NULL; | 2202 | char *option = NULL; |
diff --git a/drivers/video/riva/rivafb-i2c.c b/drivers/video/riva/rivafb-i2c.c index 167400e2a182..6a183375ced1 100644 --- a/drivers/video/riva/rivafb-i2c.c +++ b/drivers/video/riva/rivafb-i2c.c | |||
@@ -86,9 +86,8 @@ static int riva_gpio_getsda(void* data) | |||
86 | return val; | 86 | return val; |
87 | } | 87 | } |
88 | 88 | ||
89 | static int __devinit riva_setup_i2c_bus(struct riva_i2c_chan *chan, | 89 | static int riva_setup_i2c_bus(struct riva_i2c_chan *chan, const char *name, |
90 | const char *name, | 90 | unsigned int i2c_class) |
91 | unsigned int i2c_class) | ||
92 | { | 91 | { |
93 | int rc; | 92 | int rc; |
94 | 93 | ||
@@ -124,7 +123,7 @@ static int __devinit riva_setup_i2c_bus(struct riva_i2c_chan *chan, | |||
124 | return rc; | 123 | return rc; |
125 | } | 124 | } |
126 | 125 | ||
127 | void __devinit riva_create_i2c_busses(struct riva_par *par) | 126 | void riva_create_i2c_busses(struct riva_par *par) |
128 | { | 127 | { |
129 | par->chan[0].par = par; | 128 | par->chan[0].par = par; |
130 | par->chan[1].par = par; | 129 | par->chan[1].par = par; |
@@ -150,7 +149,7 @@ void riva_delete_i2c_busses(struct riva_par *par) | |||
150 | } | 149 | } |
151 | } | 150 | } |
152 | 151 | ||
153 | int __devinit riva_probe_i2c_connector(struct riva_par *par, int conn, u8 **out_edid) | 152 | int riva_probe_i2c_connector(struct riva_par *par, int conn, u8 **out_edid) |
154 | { | 153 | { |
155 | u8 *edid = NULL; | 154 | u8 *edid = NULL; |
156 | 155 | ||