diff options
Diffstat (limited to 'drivers/video/neofb.c')
-rw-r--r-- | drivers/video/neofb.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/video/neofb.c b/drivers/video/neofb.c index afc9521173ef..7ef079c146e7 100644 --- a/drivers/video/neofb.c +++ b/drivers/video/neofb.c | |||
@@ -88,7 +88,7 @@ static bool external; | |||
88 | static bool libretto; | 88 | static bool libretto; |
89 | static bool nostretch; | 89 | static bool nostretch; |
90 | static bool nopciburst; | 90 | static bool nopciburst; |
91 | static char *mode_option __devinitdata = NULL; | 91 | static char *mode_option = NULL; |
92 | 92 | ||
93 | #ifdef MODULE | 93 | #ifdef MODULE |
94 | 94 | ||
@@ -1632,7 +1632,7 @@ static struct fb_ops neofb_ops = { | |||
1632 | 1632 | ||
1633 | /* --------------------------------------------------------------------- */ | 1633 | /* --------------------------------------------------------------------- */ |
1634 | 1634 | ||
1635 | static struct fb_videomode __devinitdata mode800x480 = { | 1635 | static struct fb_videomode mode800x480 = { |
1636 | .xres = 800, | 1636 | .xres = 800, |
1637 | .yres = 480, | 1637 | .yres = 480, |
1638 | .pixclock = 25000, | 1638 | .pixclock = 25000, |
@@ -1646,8 +1646,7 @@ static struct fb_videomode __devinitdata mode800x480 = { | |||
1646 | .vmode = FB_VMODE_NONINTERLACED | 1646 | .vmode = FB_VMODE_NONINTERLACED |
1647 | }; | 1647 | }; |
1648 | 1648 | ||
1649 | static int __devinit neo_map_mmio(struct fb_info *info, | 1649 | static int neo_map_mmio(struct fb_info *info, struct pci_dev *dev) |
1650 | struct pci_dev *dev) | ||
1651 | { | 1650 | { |
1652 | struct neofb_par *par = info->par; | 1651 | struct neofb_par *par = info->par; |
1653 | 1652 | ||
@@ -1707,8 +1706,8 @@ static void neo_unmap_mmio(struct fb_info *info) | |||
1707 | info->fix.mmio_len); | 1706 | info->fix.mmio_len); |
1708 | } | 1707 | } |
1709 | 1708 | ||
1710 | static int __devinit neo_map_video(struct fb_info *info, | 1709 | static int neo_map_video(struct fb_info *info, struct pci_dev *dev, |
1711 | struct pci_dev *dev, int video_len) | 1710 | int video_len) |
1712 | { | 1711 | { |
1713 | //unsigned long addr; | 1712 | //unsigned long addr; |
1714 | 1713 | ||
@@ -1772,7 +1771,7 @@ static void neo_unmap_video(struct fb_info *info) | |||
1772 | info->fix.smem_len); | 1771 | info->fix.smem_len); |
1773 | } | 1772 | } |
1774 | 1773 | ||
1775 | static int __devinit neo_scan_monitor(struct fb_info *info) | 1774 | static int neo_scan_monitor(struct fb_info *info) |
1776 | { | 1775 | { |
1777 | struct neofb_par *par = info->par; | 1776 | struct neofb_par *par = info->par; |
1778 | unsigned char type, display; | 1777 | unsigned char type, display; |
@@ -1851,7 +1850,7 @@ static int __devinit neo_scan_monitor(struct fb_info *info) | |||
1851 | return 0; | 1850 | return 0; |
1852 | } | 1851 | } |
1853 | 1852 | ||
1854 | static int __devinit neo_init_hw(struct fb_info *info) | 1853 | static int neo_init_hw(struct fb_info *info) |
1855 | { | 1854 | { |
1856 | struct neofb_par *par = info->par; | 1855 | struct neofb_par *par = info->par; |
1857 | int videoRam = 896; | 1856 | int videoRam = 896; |
@@ -1939,8 +1938,8 @@ static int __devinit neo_init_hw(struct fb_info *info) | |||
1939 | } | 1938 | } |
1940 | 1939 | ||
1941 | 1940 | ||
1942 | static struct fb_info *__devinit neo_alloc_fb_info(struct pci_dev *dev, const struct | 1941 | static struct fb_info *neo_alloc_fb_info(struct pci_dev *dev, |
1943 | pci_device_id *id) | 1942 | const struct pci_device_id *id) |
1944 | { | 1943 | { |
1945 | struct fb_info *info; | 1944 | struct fb_info *info; |
1946 | struct neofb_par *par; | 1945 | struct neofb_par *par; |
@@ -2038,8 +2037,7 @@ static void neo_free_fb_info(struct fb_info *info) | |||
2038 | 2037 | ||
2039 | /* --------------------------------------------------------------------- */ | 2038 | /* --------------------------------------------------------------------- */ |
2040 | 2039 | ||
2041 | static int __devinit neofb_probe(struct pci_dev *dev, | 2040 | static int neofb_probe(struct pci_dev *dev, const struct pci_device_id *id) |
2042 | const struct pci_device_id *id) | ||
2043 | { | 2041 | { |
2044 | struct fb_info *info; | 2042 | struct fb_info *info; |
2045 | u_int h_sync, v_sync; | 2043 | u_int h_sync, v_sync; |
@@ -2128,7 +2126,7 @@ err_map_mmio: | |||
2128 | return err; | 2126 | return err; |
2129 | } | 2127 | } |
2130 | 2128 | ||
2131 | static void __devexit neofb_remove(struct pci_dev *dev) | 2129 | static void neofb_remove(struct pci_dev *dev) |
2132 | { | 2130 | { |
2133 | struct fb_info *info = pci_get_drvdata(dev); | 2131 | struct fb_info *info = pci_get_drvdata(dev); |
2134 | 2132 | ||
@@ -2194,7 +2192,7 @@ static struct pci_driver neofb_driver = { | |||
2194 | .name = "neofb", | 2192 | .name = "neofb", |
2195 | .id_table = neofb_devices, | 2193 | .id_table = neofb_devices, |
2196 | .probe = neofb_probe, | 2194 | .probe = neofb_probe, |
2197 | .remove = __devexit_p(neofb_remove) | 2195 | .remove = neofb_remove, |
2198 | }; | 2196 | }; |
2199 | 2197 | ||
2200 | /* ************************* init in-kernel code ************************** */ | 2198 | /* ************************* init in-kernel code ************************** */ |