diff options
Diffstat (limited to 'drivers/net/wan/dscc4.c')
-rw-r--r-- | drivers/net/wan/dscc4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index 5f1ccb2b08b1..7d16ca3cb93c 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -730,8 +730,7 @@ static int __devinit dscc4_init_one(struct pci_dev *pdev, | |||
730 | goto err_free_mmio_region_1; | 730 | goto err_free_mmio_region_1; |
731 | } | 731 | } |
732 | 732 | ||
733 | ioaddr = ioremap(pci_resource_start(pdev, 0), | 733 | ioaddr = pci_ioremap_bar(pdev, 0); |
734 | pci_resource_len(pdev, 0)); | ||
735 | if (!ioaddr) { | 734 | if (!ioaddr) { |
736 | printk(KERN_ERR "%s: cannot remap MMIO region %llx @ %llx\n", | 735 | printk(KERN_ERR "%s: cannot remap MMIO region %llx @ %llx\n", |
737 | DRV_NAME, (unsigned long long)pci_resource_len(pdev, 0), | 736 | DRV_NAME, (unsigned long long)pci_resource_len(pdev, 0), |