aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/aty
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/aty')
-rw-r--r--drivers/video/aty/aty128fb.c4
-rw-r--r--drivers/video/aty/atyfb_base.c14
-rw-r--r--drivers/video/aty/radeon_base.c34
3 files changed, 25 insertions, 27 deletions
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c
index b0eba3ac6420..e380ee8b0247 100644
--- a/drivers/video/aty/aty128fb.c
+++ b/drivers/video/aty/aty128fb.c
@@ -806,8 +806,8 @@ static void __iomem * __init aty128_map_ROM(const struct aty128fb_par *par, stru
806 806
807 /* Very simple test to make sure it appeared */ 807 /* Very simple test to make sure it appeared */
808 if (BIOS_IN16(0) != 0xaa55) { 808 if (BIOS_IN16(0) != 0xaa55) {
809 printk(KERN_ERR "aty128fb: Invalid ROM signature %x should be 0xaa55\n", 809 printk(KERN_DEBUG "aty128fb: Invalid ROM signature %x should "
810 BIOS_IN16(0)); 810 " be 0xaa55\n", BIOS_IN16(0));
811 goto failed; 811 goto failed;
812 } 812 }
813 813
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
index 3e10bd837d9e..037fe9d32fe3 100644
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -911,20 +911,6 @@ static int aty_var_to_crtc(const struct fb_info *info,
911 vdisplay = par->lcd_height; 911 vdisplay = par->lcd_height;
912#endif 912#endif
913 913
914 if(vdisplay < 400) {
915 h_sync_pol = 1;
916 v_sync_pol = 0;
917 } else if(vdisplay < 480) {
918 h_sync_pol = 0;
919 v_sync_pol = 1;
920 } else if(vdisplay < 768) {
921 h_sync_pol = 0;
922 v_sync_pol = 0;
923 } else {
924 h_sync_pol = 1;
925 v_sync_pol = 1;
926 }
927
928 v_disp--; 914 v_disp--;
929 v_sync_strt--; 915 v_sync_strt--;
930 v_sync_end--; 916 v_sync_end--;
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c
index e7e8b52014c3..046b47860266 100644
--- a/drivers/video/aty/radeon_base.c
+++ b/drivers/video/aty/radeon_base.c
@@ -329,8 +329,9 @@ static int __devinit radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev
329 329
330 /* Very simple test to make sure it appeared */ 330 /* Very simple test to make sure it appeared */
331 if (BIOS_IN16(0) != 0xaa55) { 331 if (BIOS_IN16(0) != 0xaa55) {
332 printk(KERN_ERR "radeonfb (%s): Invalid ROM signature %x should be" 332 printk(KERN_DEBUG "radeonfb (%s): Invalid ROM signature %x "
333 "0xaa55\n", pci_name(rinfo->pdev), BIOS_IN16(0)); 333 "should be 0xaa55\n",
334 pci_name(rinfo->pdev), BIOS_IN16(0));
334 goto failed; 335 goto failed;
335 } 336 }
336 /* Look for the PCI data to check the ROM type */ 337 /* Look for the PCI data to check the ROM type */
@@ -2312,19 +2313,27 @@ static int radeonfb_pci_register (struct pci_dev *pdev,
2312 rinfo->mmio_base_phys = pci_resource_start (pdev, 2); 2313 rinfo->mmio_base_phys = pci_resource_start (pdev, 2);
2313 2314
2314 /* request the mem regions */ 2315 /* request the mem regions */
2315 ret = pci_request_regions(pdev, "radeonfb"); 2316 ret = pci_request_region(pdev, 0, "radeonfb framebuffer");
2316 if (ret < 0) { 2317 if (ret < 0) {
2317 printk( KERN_ERR "radeonfb (%s): cannot reserve PCI regions." 2318 printk( KERN_ERR "radeonfb (%s): cannot request region 0.\n",
2318 " Someone already got them?\n", pci_name(rinfo->pdev)); 2319 pci_name(rinfo->pdev));
2319 goto err_release_fb; 2320 goto err_release_fb;
2320 } 2321 }
2321 2322
2323 ret = pci_request_region(pdev, 2, "radeonfb mmio");
2324 if (ret < 0) {
2325 printk( KERN_ERR "radeonfb (%s): cannot request region 2.\n",
2326 pci_name(rinfo->pdev));
2327 goto err_release_pci0;
2328 }
2329
2322 /* map the regions */ 2330 /* map the regions */
2323 rinfo->mmio_base = ioremap(rinfo->mmio_base_phys, RADEON_REGSIZE); 2331 rinfo->mmio_base = ioremap(rinfo->mmio_base_phys, RADEON_REGSIZE);
2324 if (!rinfo->mmio_base) { 2332 if (!rinfo->mmio_base) {
2325 printk(KERN_ERR "radeonfb (%s): cannot map MMIO\n", pci_name(rinfo->pdev)); 2333 printk(KERN_ERR "radeonfb (%s): cannot map MMIO\n",
2334 pci_name(rinfo->pdev));
2326 ret = -EIO; 2335 ret = -EIO;
2327 goto err_release_pci; 2336 goto err_release_pci2;
2328 } 2337 }
2329 2338
2330 rinfo->fb_local_base = INREG(MC_FB_LOCATION) << 16; 2339 rinfo->fb_local_base = INREG(MC_FB_LOCATION) << 16;
@@ -2499,10 +2508,12 @@ err_unmap_rom:
2499 if (rinfo->bios_seg) 2508 if (rinfo->bios_seg)
2500 radeon_unmap_ROM(rinfo, pdev); 2509 radeon_unmap_ROM(rinfo, pdev);
2501 iounmap(rinfo->mmio_base); 2510 iounmap(rinfo->mmio_base);
2502err_release_pci: 2511err_release_pci2:
2503 pci_release_regions(pdev); 2512 pci_release_region(pdev, 2);
2513err_release_pci0:
2514 pci_release_region(pdev, 0);
2504err_release_fb: 2515err_release_fb:
2505 framebuffer_release(info); 2516 framebuffer_release(info);
2506err_disable: 2517err_disable:
2507 pci_disable_device(pdev); 2518 pci_disable_device(pdev);
2508err_out: 2519err_out:
@@ -2548,7 +2559,8 @@ static void __devexit radeonfb_pci_unregister (struct pci_dev *pdev)
2548 iounmap(rinfo->mmio_base); 2559 iounmap(rinfo->mmio_base);
2549 iounmap(rinfo->fb_base); 2560 iounmap(rinfo->fb_base);
2550 2561
2551 pci_release_regions(pdev); 2562 pci_release_region(pdev, 2);
2563 pci_release_region(pdev, 0);
2552 2564
2553 kfree(rinfo->mon1_EDID); 2565 kfree(rinfo->mon1_EDID);
2554 kfree(rinfo->mon2_EDID); 2566 kfree(rinfo->mon2_EDID);