diff options
Diffstat (limited to 'drivers/video/savage/savagefb_driver.c')
-rw-r--r-- | drivers/video/savage/savagefb_driver.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/drivers/video/savage/savagefb_driver.c b/drivers/video/savage/savagefb_driver.c index f4f53b082d05..741b2395d01e 100644 --- a/drivers/video/savage/savagefb_driver.c +++ b/drivers/video/savage/savagefb_driver.c | |||
@@ -69,7 +69,7 @@ | |||
69 | /* --------------------------------------------------------------------- */ | 69 | /* --------------------------------------------------------------------- */ |
70 | 70 | ||
71 | 71 | ||
72 | static char *mode_option __devinitdata = NULL; | 72 | static char *mode_option = NULL; |
73 | 73 | ||
74 | #ifdef MODULE | 74 | #ifdef MODULE |
75 | 75 | ||
@@ -1664,7 +1664,7 @@ static struct fb_ops savagefb_ops = { | |||
1664 | 1664 | ||
1665 | /* --------------------------------------------------------------------- */ | 1665 | /* --------------------------------------------------------------------- */ |
1666 | 1666 | ||
1667 | static struct fb_var_screeninfo __devinitdata savagefb_var800x600x8 = { | 1667 | static struct fb_var_screeninfo savagefb_var800x600x8 = { |
1668 | .accel_flags = FB_ACCELF_TEXT, | 1668 | .accel_flags = FB_ACCELF_TEXT, |
1669 | .xres = 800, | 1669 | .xres = 800, |
1670 | .yres = 600, | 1670 | .yres = 600, |
@@ -1715,7 +1715,7 @@ static void savage_disable_mmio(struct savagefb_par *par) | |||
1715 | } | 1715 | } |
1716 | 1716 | ||
1717 | 1717 | ||
1718 | static int __devinit savage_map_mmio(struct fb_info *info) | 1718 | static int savage_map_mmio(struct fb_info *info) |
1719 | { | 1719 | { |
1720 | struct savagefb_par *par = info->par; | 1720 | struct savagefb_par *par = info->par; |
1721 | DBG("savage_map_mmio"); | 1721 | DBG("savage_map_mmio"); |
@@ -1761,8 +1761,7 @@ static void savage_unmap_mmio(struct fb_info *info) | |||
1761 | } | 1761 | } |
1762 | } | 1762 | } |
1763 | 1763 | ||
1764 | static int __devinit savage_map_video(struct fb_info *info, | 1764 | static int savage_map_video(struct fb_info *info, int video_len) |
1765 | int video_len) | ||
1766 | { | 1765 | { |
1767 | struct savagefb_par *par = info->par; | 1766 | struct savagefb_par *par = info->par; |
1768 | int resource; | 1767 | int resource; |
@@ -2052,9 +2051,8 @@ static int savage_init_hw(struct savagefb_par *par) | |||
2052 | return videoRambytes; | 2051 | return videoRambytes; |
2053 | } | 2052 | } |
2054 | 2053 | ||
2055 | static int __devinit savage_init_fb_info(struct fb_info *info, | 2054 | static int savage_init_fb_info(struct fb_info *info, struct pci_dev *dev, |
2056 | struct pci_dev *dev, | 2055 | const struct pci_device_id *id) |
2057 | const struct pci_device_id *id) | ||
2058 | { | 2056 | { |
2059 | struct savagefb_par *par = info->par; | 2057 | struct savagefb_par *par = info->par; |
2060 | int err = 0; | 2058 | int err = 0; |
@@ -2178,8 +2176,7 @@ static int __devinit savage_init_fb_info(struct fb_info *info, | |||
2178 | 2176 | ||
2179 | /* --------------------------------------------------------------------- */ | 2177 | /* --------------------------------------------------------------------- */ |
2180 | 2178 | ||
2181 | static int __devinit savagefb_probe(struct pci_dev* dev, | 2179 | static int savagefb_probe(struct pci_dev *dev, const struct pci_device_id *id) |
2182 | const struct pci_device_id* id) | ||
2183 | { | 2180 | { |
2184 | struct fb_info *info; | 2181 | struct fb_info *info; |
2185 | struct savagefb_par *par; | 2182 | struct savagefb_par *par; |
@@ -2340,7 +2337,7 @@ static int __devinit savagefb_probe(struct pci_dev* dev, | |||
2340 | return err; | 2337 | return err; |
2341 | } | 2338 | } |
2342 | 2339 | ||
2343 | static void __devexit savagefb_remove(struct pci_dev *dev) | 2340 | static void savagefb_remove(struct pci_dev *dev) |
2344 | { | 2341 | { |
2345 | struct fb_info *info = pci_get_drvdata(dev); | 2342 | struct fb_info *info = pci_get_drvdata(dev); |
2346 | 2343 | ||
@@ -2449,7 +2446,7 @@ static int savagefb_resume(struct pci_dev* dev) | |||
2449 | } | 2446 | } |
2450 | 2447 | ||
2451 | 2448 | ||
2452 | static struct pci_device_id savagefb_devices[] __devinitdata = { | 2449 | static struct pci_device_id savagefb_devices[] = { |
2453 | {PCI_VENDOR_ID_S3, PCI_CHIP_SUPSAV_MX128, | 2450 | {PCI_VENDOR_ID_S3, PCI_CHIP_SUPSAV_MX128, |
2454 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, FB_ACCEL_SUPERSAVAGE}, | 2451 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, FB_ACCEL_SUPERSAVAGE}, |
2455 | 2452 | ||
@@ -2530,7 +2527,7 @@ static struct pci_driver savagefb_driver = { | |||
2530 | .probe = savagefb_probe, | 2527 | .probe = savagefb_probe, |
2531 | .suspend = savagefb_suspend, | 2528 | .suspend = savagefb_suspend, |
2532 | .resume = savagefb_resume, | 2529 | .resume = savagefb_resume, |
2533 | .remove = __devexit_p(savagefb_remove) | 2530 | .remove = savagefb_remove, |
2534 | }; | 2531 | }; |
2535 | 2532 | ||
2536 | /* **************************** exit-time only **************************** */ | 2533 | /* **************************** exit-time only **************************** */ |