diff options
Diffstat (limited to 'drivers/video/intelfb/intelfbdrv.c')
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index bdcbfbae2777..8209e46c5d28 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -132,7 +132,7 @@ | |||
132 | #include "intelfbhw.h" | 132 | #include "intelfbhw.h" |
133 | #include "../edid.h" | 133 | #include "../edid.h" |
134 | 134 | ||
135 | static void __devinit get_initial_mode(struct intelfb_info *dinfo); | 135 | static void get_initial_mode(struct intelfb_info *dinfo); |
136 | static void update_dinfo(struct intelfb_info *dinfo, | 136 | static void update_dinfo(struct intelfb_info *dinfo, |
137 | struct fb_var_screeninfo *var); | 137 | struct fb_var_screeninfo *var); |
138 | static int intelfb_open(struct fb_info *info, int user); | 138 | static int intelfb_open(struct fb_info *info, int user); |
@@ -162,10 +162,10 @@ static int intelfb_sync(struct fb_info *info); | |||
162 | static int intelfb_ioctl(struct fb_info *info, | 162 | static int intelfb_ioctl(struct fb_info *info, |
163 | unsigned int cmd, unsigned long arg); | 163 | unsigned int cmd, unsigned long arg); |
164 | 164 | ||
165 | static int __devinit intelfb_pci_register(struct pci_dev *pdev, | 165 | static int intelfb_pci_register(struct pci_dev *pdev, |
166 | const struct pci_device_id *ent); | 166 | const struct pci_device_id *ent); |
167 | static void __devexit intelfb_pci_unregister(struct pci_dev *pdev); | 167 | static void intelfb_pci_unregister(struct pci_dev *pdev); |
168 | static int __devinit intelfb_set_fbinfo(struct intelfb_info *dinfo); | 168 | static int intelfb_set_fbinfo(struct intelfb_info *dinfo); |
169 | 169 | ||
170 | /* | 170 | /* |
171 | * Limiting the class to PCI_CLASS_DISPLAY_VGA prevents function 1 of the | 171 | * Limiting the class to PCI_CLASS_DISPLAY_VGA prevents function 1 of the |
@@ -177,7 +177,7 @@ static int __devinit intelfb_set_fbinfo(struct intelfb_info *dinfo); | |||
177 | #define INTELFB_CLASS_MASK 0 | 177 | #define INTELFB_CLASS_MASK 0 |
178 | #endif | 178 | #endif |
179 | 179 | ||
180 | static struct pci_device_id intelfb_pci_table[] __devinitdata = { | 180 | static struct pci_device_id intelfb_pci_table[] = { |
181 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_830M, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_830M }, | 181 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_830M, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_830M }, |
182 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_845G, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_845G }, | 182 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_845G, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_845G }, |
183 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_85XGM, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_85XGM }, | 183 | { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_85XGM, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA << 8, INTELFB_CLASS_MASK, INTEL_85XGM }, |
@@ -219,7 +219,7 @@ static struct pci_driver intelfb_driver = { | |||
219 | .name = "intelfb", | 219 | .name = "intelfb", |
220 | .id_table = intelfb_pci_table, | 220 | .id_table = intelfb_pci_table, |
221 | .probe = intelfb_pci_register, | 221 | .probe = intelfb_pci_register, |
222 | .remove = __devexit_p(intelfb_pci_unregister) | 222 | .remove = intelfb_pci_unregister, |
223 | }; | 223 | }; |
224 | 224 | ||
225 | /* Module description/parameters */ | 225 | /* Module description/parameters */ |
@@ -415,7 +415,7 @@ module_exit(intelfb_exit); | |||
415 | ***************************************************************/ | 415 | ***************************************************************/ |
416 | 416 | ||
417 | #ifdef CONFIG_MTRR | 417 | #ifdef CONFIG_MTRR |
418 | static inline void __devinit set_mtrr(struct intelfb_info *dinfo) | 418 | static inline void set_mtrr(struct intelfb_info *dinfo) |
419 | { | 419 | { |
420 | dinfo->mtrr_reg = mtrr_add(dinfo->aperture.physical, | 420 | dinfo->mtrr_reg = mtrr_add(dinfo->aperture.physical, |
421 | dinfo->aperture.size, MTRR_TYPE_WRCOMB, 1); | 421 | dinfo->aperture.size, MTRR_TYPE_WRCOMB, 1); |
@@ -497,8 +497,8 @@ static void cleanup(struct intelfb_info *dinfo) | |||
497 | } while (0) | 497 | } while (0) |
498 | 498 | ||
499 | 499 | ||
500 | static int __devinit intelfb_pci_register(struct pci_dev *pdev, | 500 | static int intelfb_pci_register(struct pci_dev *pdev, |
501 | const struct pci_device_id *ent) | 501 | const struct pci_device_id *ent) |
502 | { | 502 | { |
503 | struct fb_info *info; | 503 | struct fb_info *info; |
504 | struct intelfb_info *dinfo; | 504 | struct intelfb_info *dinfo; |
@@ -921,8 +921,7 @@ err_out_cmap: | |||
921 | return -ENODEV; | 921 | return -ENODEV; |
922 | } | 922 | } |
923 | 923 | ||
924 | static void __devexit | 924 | static void intelfb_pci_unregister(struct pci_dev *pdev) |
925 | intelfb_pci_unregister(struct pci_dev *pdev) | ||
926 | { | 925 | { |
927 | struct intelfb_info *dinfo = pci_get_drvdata(pdev); | 926 | struct intelfb_info *dinfo = pci_get_drvdata(pdev); |
928 | 927 | ||
@@ -970,7 +969,7 @@ static __inline__ int var_to_refresh(const struct fb_var_screeninfo *var) | |||
970 | * Various intialisation functions * | 969 | * Various intialisation functions * |
971 | ***************************************************************/ | 970 | ***************************************************************/ |
972 | 971 | ||
973 | static void __devinit get_initial_mode(struct intelfb_info *dinfo) | 972 | static void get_initial_mode(struct intelfb_info *dinfo) |
974 | { | 973 | { |
975 | struct fb_var_screeninfo *var; | 974 | struct fb_var_screeninfo *var; |
976 | int xtot, ytot; | 975 | int xtot, ytot; |
@@ -1037,7 +1036,7 @@ static void __devinit get_initial_mode(struct intelfb_info *dinfo) | |||
1037 | } | 1036 | } |
1038 | } | 1037 | } |
1039 | 1038 | ||
1040 | static int __devinit intelfb_init_var(struct intelfb_info *dinfo) | 1039 | static int intelfb_init_var(struct intelfb_info *dinfo) |
1041 | { | 1040 | { |
1042 | struct fb_var_screeninfo *var; | 1041 | struct fb_var_screeninfo *var; |
1043 | int msrc = 0; | 1042 | int msrc = 0; |
@@ -1118,7 +1117,7 @@ static int __devinit intelfb_init_var(struct intelfb_info *dinfo) | |||
1118 | return 0; | 1117 | return 0; |
1119 | } | 1118 | } |
1120 | 1119 | ||
1121 | static int __devinit intelfb_set_fbinfo(struct intelfb_info *dinfo) | 1120 | static int intelfb_set_fbinfo(struct intelfb_info *dinfo) |
1122 | { | 1121 | { |
1123 | struct fb_info *info = dinfo->info; | 1122 | struct fb_info *info = dinfo->info; |
1124 | 1123 | ||