diff options
-rw-r--r-- | drivers/video/aty/radeon_base.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c index ee25b9e8db60..47a6b12bc968 100644 --- a/drivers/video/aty/radeon_base.c +++ b/drivers/video/aty/radeon_base.c | |||
@@ -2374,10 +2374,9 @@ static int radeonfb_pci_register (struct pci_dev *pdev, | |||
2374 | } while ( rinfo->fb_base == 0 && | 2374 | } while ( rinfo->fb_base == 0 && |
2375 | ((rinfo->mapped_vram /=2) >= MIN_MAPPED_VRAM) ); | 2375 | ((rinfo->mapped_vram /=2) >= MIN_MAPPED_VRAM) ); |
2376 | 2376 | ||
2377 | if (rinfo->fb_base) | 2377 | if (rinfo->fb_base == NULL) { |
2378 | memset_io(rinfo->fb_base, 0, rinfo->mapped_vram); | 2378 | printk (KERN_ERR "radeonfb (%s): cannot map FB\n", |
2379 | else { | 2379 | pci_name(rinfo->pdev)); |
2380 | printk (KERN_ERR "radeonfb (%s): cannot map FB\n", pci_name(rinfo->pdev)); | ||
2381 | ret = -EIO; | 2380 | ret = -EIO; |
2382 | goto err_unmap_rom; | 2381 | goto err_unmap_rom; |
2383 | } | 2382 | } |