diff options
-rw-r--r-- | drivers/video/aty/aty128fb.c | 2 | ||||
-rw-r--r-- | drivers/video/cyber2000fb.c | 3 | ||||
-rw-r--r-- | drivers/video/geode/gx1fb_core.c | 3 | ||||
-rw-r--r-- | drivers/video/geode/gxfb_core.c | 8 | ||||
-rw-r--r-- | drivers/video/geode/lxfb_core.c | 9 | ||||
-rw-r--r-- | drivers/video/gxt4500.c | 4 |
6 files changed, 11 insertions, 18 deletions
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index 243ea4ab20c8..db16112cf197 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c | |||
@@ -2051,7 +2051,7 @@ static int __devinit aty128_probe(struct pci_dev *pdev, const struct pci_device_ | |||
2051 | 2051 | ||
2052 | /* Virtualize mmio region */ | 2052 | /* Virtualize mmio region */ |
2053 | info->fix.mmio_start = reg_addr; | 2053 | info->fix.mmio_start = reg_addr; |
2054 | par->regbase = ioremap(reg_addr, pci_resource_len(pdev, 2)); | 2054 | par->regbase = pci_ioremap_bar(pdev, 2); |
2055 | if (!par->regbase) | 2055 | if (!par->regbase) |
2056 | goto err_free_info; | 2056 | goto err_free_info; |
2057 | 2057 | ||
diff --git a/drivers/video/cyber2000fb.c b/drivers/video/cyber2000fb.c index 39d5d643a50b..7a9e42e3a9a9 100644 --- a/drivers/video/cyber2000fb.c +++ b/drivers/video/cyber2000fb.c | |||
@@ -1583,8 +1583,7 @@ cyberpro_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) | |||
1583 | goto failed_release; | 1583 | goto failed_release; |
1584 | 1584 | ||
1585 | cfb->dev = dev; | 1585 | cfb->dev = dev; |
1586 | cfb->region = ioremap(pci_resource_start(dev, 0), | 1586 | cfb->region = pci_ioremap_bar(dev, 0); |
1587 | pci_resource_len(dev, 0)); | ||
1588 | if (!cfb->region) | 1587 | if (!cfb->region) |
1589 | goto failed_ioremap; | 1588 | goto failed_ioremap; |
1590 | 1589 | ||
diff --git a/drivers/video/geode/gx1fb_core.c b/drivers/video/geode/gx1fb_core.c index bb20a2289760..751e491ca8c8 100644 --- a/drivers/video/geode/gx1fb_core.c +++ b/drivers/video/geode/gx1fb_core.c | |||
@@ -217,8 +217,7 @@ static int __init gx1fb_map_video_memory(struct fb_info *info, struct pci_dev *d | |||
217 | ret = pci_request_region(dev, 0, "gx1fb (video)"); | 217 | ret = pci_request_region(dev, 0, "gx1fb (video)"); |
218 | if (ret < 0) | 218 | if (ret < 0) |
219 | return ret; | 219 | return ret; |
220 | par->vid_regs = ioremap(pci_resource_start(dev, 0), | 220 | par->vid_regs = pci_ioremap_bar(dev, 0); |
221 | pci_resource_len(dev, 0)); | ||
222 | if (!par->vid_regs) | 221 | if (!par->vid_regs) |
223 | return -ENOMEM; | 222 | return -ENOMEM; |
224 | 223 | ||
diff --git a/drivers/video/geode/gxfb_core.c b/drivers/video/geode/gxfb_core.c index de2b8f9876a5..484118926318 100644 --- a/drivers/video/geode/gxfb_core.c +++ b/drivers/video/geode/gxfb_core.c | |||
@@ -242,23 +242,21 @@ static int __init gxfb_map_video_memory(struct fb_info *info, struct pci_dev *de | |||
242 | ret = pci_request_region(dev, 3, "gxfb (video processor)"); | 242 | ret = pci_request_region(dev, 3, "gxfb (video processor)"); |
243 | if (ret < 0) | 243 | if (ret < 0) |
244 | return ret; | 244 | return ret; |
245 | par->vid_regs = ioremap(pci_resource_start(dev, 3), | 245 | par->vid_regs = pci_ioremap_bar(dev, 3); |
246 | pci_resource_len(dev, 3)); | ||
247 | if (!par->vid_regs) | 246 | if (!par->vid_regs) |
248 | return -ENOMEM; | 247 | return -ENOMEM; |
249 | 248 | ||
250 | ret = pci_request_region(dev, 2, "gxfb (display controller)"); | 249 | ret = pci_request_region(dev, 2, "gxfb (display controller)"); |
251 | if (ret < 0) | 250 | if (ret < 0) |
252 | return ret; | 251 | return ret; |
253 | par->dc_regs = ioremap(pci_resource_start(dev, 2), pci_resource_len(dev, 2)); | 252 | par->dc_regs = pci_ioremap_bar(dev, 2); |
254 | if (!par->dc_regs) | 253 | if (!par->dc_regs) |
255 | return -ENOMEM; | 254 | return -ENOMEM; |
256 | 255 | ||
257 | ret = pci_request_region(dev, 1, "gxfb (graphics processor)"); | 256 | ret = pci_request_region(dev, 1, "gxfb (graphics processor)"); |
258 | if (ret < 0) | 257 | if (ret < 0) |
259 | return ret; | 258 | return ret; |
260 | par->gp_regs = ioremap(pci_resource_start(dev, 1), | 259 | par->gp_regs = pci_ioremap_bar(dev, 1); |
261 | pci_resource_len(dev, 1)); | ||
262 | 260 | ||
263 | if (!par->gp_regs) | 261 | if (!par->gp_regs) |
264 | return -ENOMEM; | 262 | return -ENOMEM; |
diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c index 2cd9b74d2225..b965ecdbc604 100644 --- a/drivers/video/geode/lxfb_core.c +++ b/drivers/video/geode/lxfb_core.c | |||
@@ -379,20 +379,17 @@ static int __init lxfb_map_video_memory(struct fb_info *info, | |||
379 | if (info->screen_base == NULL) | 379 | if (info->screen_base == NULL) |
380 | return ret; | 380 | return ret; |
381 | 381 | ||
382 | par->gp_regs = ioremap(pci_resource_start(dev, 1), | 382 | par->gp_regs = pci_ioremap_bar(dev, 1); |
383 | pci_resource_len(dev, 1)); | ||
384 | 383 | ||
385 | if (par->gp_regs == NULL) | 384 | if (par->gp_regs == NULL) |
386 | return ret; | 385 | return ret; |
387 | 386 | ||
388 | par->dc_regs = ioremap(pci_resource_start(dev, 2), | 387 | par->dc_regs = pci_ioremap_bar(dev, 2); |
389 | pci_resource_len(dev, 2)); | ||
390 | 388 | ||
391 | if (par->dc_regs == NULL) | 389 | if (par->dc_regs == NULL) |
392 | return ret; | 390 | return ret; |
393 | 391 | ||
394 | par->vp_regs = ioremap(pci_resource_start(dev, 3), | 392 | par->vp_regs = pci_ioremap_bar(dev, 3); |
395 | pci_resource_len(dev, 3)); | ||
396 | 393 | ||
397 | if (par->vp_regs == NULL) | 394 | if (par->vp_regs == NULL) |
398 | return ret; | 395 | return ret; |
diff --git a/drivers/video/gxt4500.c b/drivers/video/gxt4500.c index 564557792bed..896e53dea906 100644 --- a/drivers/video/gxt4500.c +++ b/drivers/video/gxt4500.c | |||
@@ -648,7 +648,7 @@ static int __devinit gxt4500_probe(struct pci_dev *pdev, | |||
648 | info->pseudo_palette = par->pseudo_palette; | 648 | info->pseudo_palette = par->pseudo_palette; |
649 | 649 | ||
650 | info->fix.mmio_start = reg_phys; | 650 | info->fix.mmio_start = reg_phys; |
651 | par->regs = ioremap(reg_phys, pci_resource_len(pdev, 0)); | 651 | par->regs = pci_ioremap_bar(pdev, 0); |
652 | if (!par->regs) { | 652 | if (!par->regs) { |
653 | dev_err(&pdev->dev, "gxt4500: cannot map registers\n"); | 653 | dev_err(&pdev->dev, "gxt4500: cannot map registers\n"); |
654 | goto err_free_all; | 654 | goto err_free_all; |
@@ -656,7 +656,7 @@ static int __devinit gxt4500_probe(struct pci_dev *pdev, | |||
656 | 656 | ||
657 | info->fix.smem_start = fb_phys; | 657 | info->fix.smem_start = fb_phys; |
658 | info->fix.smem_len = pci_resource_len(pdev, 1); | 658 | info->fix.smem_len = pci_resource_len(pdev, 1); |
659 | info->screen_base = ioremap(fb_phys, pci_resource_len(pdev, 1)); | 659 | info->screen_base = pci_ioremap_bar(pdev, 1); |
660 | if (!info->screen_base) { | 660 | if (!info->screen_base) { |
661 | dev_err(&pdev->dev, "gxt4500: cannot map framebuffer\n"); | 661 | dev_err(&pdev->dev, "gxt4500: cannot map framebuffer\n"); |
662 | goto err_unmap_regs; | 662 | goto err_unmap_regs; |