diff options
Diffstat (limited to 'drivers/video/riva/fbdev.c')
-rw-r--r-- | drivers/video/riva/fbdev.c | 45 |
1 files changed, 22 insertions, 23 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; |