diff options
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 0d8338450675..2c3bb36cda17 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -8663,7 +8663,6 @@ static void __devinit niu_device_announce(struct niu *np) | |||
8663 | static int __devinit niu_pci_init_one(struct pci_dev *pdev, | 8663 | static int __devinit niu_pci_init_one(struct pci_dev *pdev, |
8664 | const struct pci_device_id *ent) | 8664 | const struct pci_device_id *ent) |
8665 | { | 8665 | { |
8666 | unsigned long niureg_base, niureg_len; | ||
8667 | union niu_parent_id parent_id; | 8666 | union niu_parent_id parent_id; |
8668 | struct net_device *dev; | 8667 | struct net_device *dev; |
8669 | struct niu *np; | 8668 | struct niu *np; |
@@ -8754,10 +8753,7 @@ static int __devinit niu_pci_init_one(struct pci_dev *pdev, | |||
8754 | 8753 | ||
8755 | dev->features |= (NETIF_F_SG | NETIF_F_HW_CSUM); | 8754 | dev->features |= (NETIF_F_SG | NETIF_F_HW_CSUM); |
8756 | 8755 | ||
8757 | niureg_base = pci_resource_start(pdev, 0); | 8756 | np->regs = pci_ioremap_bar(pdev, 0); |
8758 | niureg_len = pci_resource_len(pdev, 0); | ||
8759 | |||
8760 | np->regs = ioremap_nocache(niureg_base, niureg_len); | ||
8761 | if (!np->regs) { | 8757 | if (!np->regs) { |
8762 | dev_err(&pdev->dev, PFX "Cannot map device registers, " | 8758 | dev_err(&pdev->dev, PFX "Cannot map device registers, " |
8763 | "aborting.\n"); | 8759 | "aborting.\n"); |