diff options
Diffstat (limited to 'drivers/video/sstfb.c')
-rw-r--r-- | drivers/video/sstfb.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/drivers/video/sstfb.c b/drivers/video/sstfb.c index 111fb32e8769..9c00026e3ae2 100644 --- a/drivers/video/sstfb.c +++ b/drivers/video/sstfb.c | |||
@@ -104,7 +104,7 @@ static bool slowpci; /* slow PCI settings */ | |||
104 | */ | 104 | */ |
105 | #define DEFAULT_VIDEO_MODE "640x480@60" | 105 | #define DEFAULT_VIDEO_MODE "640x480@60" |
106 | 106 | ||
107 | static char *mode_option __devinitdata = DEFAULT_VIDEO_MODE; | 107 | static char *mode_option = DEFAULT_VIDEO_MODE; |
108 | 108 | ||
109 | enum { | 109 | enum { |
110 | ID_VOODOO1 = 0, | 110 | ID_VOODOO1 = 0, |
@@ -113,7 +113,7 @@ enum { | |||
113 | 113 | ||
114 | #define IS_VOODOO2(par) ((par)->type == ID_VOODOO2) | 114 | #define IS_VOODOO2(par) ((par)->type == ID_VOODOO2) |
115 | 115 | ||
116 | static struct sst_spec voodoo_spec[] __devinitdata = { | 116 | static struct sst_spec voodoo_spec[] = { |
117 | { .name = "Voodoo Graphics", .default_gfx_clock = 50000, .max_gfxclk = 60 }, | 117 | { .name = "Voodoo Graphics", .default_gfx_clock = 50000, .max_gfxclk = 60 }, |
118 | { .name = "Voodoo2", .default_gfx_clock = 75000, .max_gfxclk = 85 }, | 118 | { .name = "Voodoo2", .default_gfx_clock = 75000, .max_gfxclk = 85 }, |
119 | }; | 119 | }; |
@@ -822,7 +822,7 @@ static void sstfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) | |||
822 | /* | 822 | /* |
823 | * get lfb size | 823 | * get lfb size |
824 | */ | 824 | */ |
825 | static int __devinit sst_get_memsize(struct fb_info *info, __u32 *memsize) | 825 | static int sst_get_memsize(struct fb_info *info, __u32 *memsize) |
826 | { | 826 | { |
827 | u8 __iomem *fbbase_virt = info->screen_base; | 827 | u8 __iomem *fbbase_virt = info->screen_base; |
828 | 828 | ||
@@ -865,7 +865,7 @@ static int __devinit sst_get_memsize(struct fb_info *info, __u32 *memsize) | |||
865 | /* fbi should be idle, and fifo emty and mem disabled */ | 865 | /* fbi should be idle, and fifo emty and mem disabled */ |
866 | /* supposed to detect AT&T ATT20C409 and Ti TVP3409 ramdacs */ | 866 | /* supposed to detect AT&T ATT20C409 and Ti TVP3409 ramdacs */ |
867 | 867 | ||
868 | static int __devinit sst_detect_att(struct fb_info *info) | 868 | static int sst_detect_att(struct fb_info *info) |
869 | { | 869 | { |
870 | struct sstfb_par *par = info->par; | 870 | struct sstfb_par *par = info->par; |
871 | int i, mir, dir; | 871 | int i, mir, dir; |
@@ -890,7 +890,7 @@ static int __devinit sst_detect_att(struct fb_info *info) | |||
890 | return 0; | 890 | return 0; |
891 | } | 891 | } |
892 | 892 | ||
893 | static int __devinit sst_detect_ti(struct fb_info *info) | 893 | static int sst_detect_ti(struct fb_info *info) |
894 | { | 894 | { |
895 | struct sstfb_par *par = info->par; | 895 | struct sstfb_par *par = info->par; |
896 | int i, mir, dir; | 896 | int i, mir, dir; |
@@ -926,7 +926,7 @@ static int __devinit sst_detect_ti(struct fb_info *info) | |||
926 | * touched... | 926 | * touched... |
927 | * is it really safe ? how can i reset this ramdac ? geee... | 927 | * is it really safe ? how can i reset this ramdac ? geee... |
928 | */ | 928 | */ |
929 | static int __devinit sst_detect_ics(struct fb_info *info) | 929 | static int sst_detect_ics(struct fb_info *info) |
930 | { | 930 | { |
931 | struct sstfb_par *par = info->par; | 931 | struct sstfb_par *par = info->par; |
932 | int m_clk0_1, m_clk0_7, m_clk1_b; | 932 | int m_clk0_1, m_clk0_7, m_clk1_b; |
@@ -1105,7 +1105,7 @@ static void sst_set_vidmod_ics(struct fb_info *info, const int bpp) | |||
1105 | */ | 1105 | */ |
1106 | 1106 | ||
1107 | 1107 | ||
1108 | static struct dac_switch dacs[] __devinitdata = { | 1108 | static struct dac_switch dacs[] = { |
1109 | { .name = "TI TVP3409", | 1109 | { .name = "TI TVP3409", |
1110 | .detect = sst_detect_ti, | 1110 | .detect = sst_detect_ti, |
1111 | .set_pll = sst_set_pll_att_ti, | 1111 | .set_pll = sst_set_pll_att_ti, |
@@ -1121,7 +1121,7 @@ static struct dac_switch dacs[] __devinitdata = { | |||
1121 | .set_vidmod = sst_set_vidmod_ics }, | 1121 | .set_vidmod = sst_set_vidmod_ics }, |
1122 | }; | 1122 | }; |
1123 | 1123 | ||
1124 | static int __devinit sst_detect_dactype(struct fb_info *info, struct sstfb_par *par) | 1124 | static int sst_detect_dactype(struct fb_info *info, struct sstfb_par *par) |
1125 | { | 1125 | { |
1126 | int i, ret = 0; | 1126 | int i, ret = 0; |
1127 | 1127 | ||
@@ -1140,7 +1140,7 @@ static int __devinit sst_detect_dactype(struct fb_info *info, struct sstfb_par * | |||
1140 | /* | 1140 | /* |
1141 | * Internal Routines | 1141 | * Internal Routines |
1142 | */ | 1142 | */ |
1143 | static int __devinit sst_init(struct fb_info *info, struct sstfb_par *par) | 1143 | static int sst_init(struct fb_info *info, struct sstfb_par *par) |
1144 | { | 1144 | { |
1145 | u32 fbiinit0, fbiinit1, fbiinit4; | 1145 | u32 fbiinit0, fbiinit1, fbiinit4; |
1146 | struct pci_dev *dev = par->dev; | 1146 | struct pci_dev *dev = par->dev; |
@@ -1239,7 +1239,7 @@ static int __devinit sst_init(struct fb_info *info, struct sstfb_par *par) | |||
1239 | return 1; | 1239 | return 1; |
1240 | } | 1240 | } |
1241 | 1241 | ||
1242 | static void __devexit sst_shutdown(struct fb_info *info) | 1242 | static void sst_shutdown(struct fb_info *info) |
1243 | { | 1243 | { |
1244 | struct sstfb_par *par = info->par; | 1244 | struct sstfb_par *par = info->par; |
1245 | struct pci_dev *dev = par->dev; | 1245 | struct pci_dev *dev = par->dev; |
@@ -1271,7 +1271,7 @@ static void __devexit sst_shutdown(struct fb_info *info) | |||
1271 | /* | 1271 | /* |
1272 | * Interface to the world | 1272 | * Interface to the world |
1273 | */ | 1273 | */ |
1274 | static int __devinit sstfb_setup(char *options) | 1274 | static int sstfb_setup(char *options) |
1275 | { | 1275 | { |
1276 | char *this_opt; | 1276 | char *this_opt; |
1277 | 1277 | ||
@@ -1317,8 +1317,7 @@ static struct fb_ops sstfb_ops = { | |||
1317 | .fb_ioctl = sstfb_ioctl, | 1317 | .fb_ioctl = sstfb_ioctl, |
1318 | }; | 1318 | }; |
1319 | 1319 | ||
1320 | static int __devinit sstfb_probe(struct pci_dev *pdev, | 1320 | static int sstfb_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
1321 | const struct pci_device_id *id) | ||
1322 | { | 1321 | { |
1323 | struct fb_info *info; | 1322 | struct fb_info *info; |
1324 | struct fb_fix_screeninfo *fix; | 1323 | struct fb_fix_screeninfo *fix; |
@@ -1458,7 +1457,7 @@ fail_mmio_mem: | |||
1458 | return -ENXIO; /* no voodoo detected */ | 1457 | return -ENXIO; /* no voodoo detected */ |
1459 | } | 1458 | } |
1460 | 1459 | ||
1461 | static void __devexit sstfb_remove(struct pci_dev *pdev) | 1460 | static void sstfb_remove(struct pci_dev *pdev) |
1462 | { | 1461 | { |
1463 | struct sstfb_par *par; | 1462 | struct sstfb_par *par; |
1464 | struct fb_info *info; | 1463 | struct fb_info *info; |
@@ -1490,11 +1489,11 @@ static struct pci_driver sstfb_driver = { | |||
1490 | .name = "sstfb", | 1489 | .name = "sstfb", |
1491 | .id_table = sstfb_id_tbl, | 1490 | .id_table = sstfb_id_tbl, |
1492 | .probe = sstfb_probe, | 1491 | .probe = sstfb_probe, |
1493 | .remove = __devexit_p(sstfb_remove), | 1492 | .remove = sstfb_remove, |
1494 | }; | 1493 | }; |
1495 | 1494 | ||
1496 | 1495 | ||
1497 | static int __devinit sstfb_init(void) | 1496 | static int sstfb_init(void) |
1498 | { | 1497 | { |
1499 | char *option = NULL; | 1498 | char *option = NULL; |
1500 | 1499 | ||
@@ -1505,7 +1504,7 @@ static int __devinit sstfb_init(void) | |||
1505 | return pci_register_driver(&sstfb_driver); | 1504 | return pci_register_driver(&sstfb_driver); |
1506 | } | 1505 | } |
1507 | 1506 | ||
1508 | static void __devexit sstfb_exit(void) | 1507 | static void sstfb_exit(void) |
1509 | { | 1508 | { |
1510 | pci_unregister_driver(&sstfb_driver); | 1509 | pci_unregister_driver(&sstfb_driver); |
1511 | } | 1510 | } |