diff options
Diffstat (limited to 'drivers/net/r6040.c')
-rw-r--r-- | drivers/net/r6040.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 961b5397a531..840677f5ee82 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c | |||
@@ -1115,13 +1115,13 @@ static int __devinit r6040_init_one(struct pci_dev *pdev, | |||
1115 | } | 1115 | } |
1116 | 1116 | ||
1117 | /* IO Size check */ | 1117 | /* IO Size check */ |
1118 | if (pci_resource_len(pdev, 0) < io_size) { | 1118 | if (pci_resource_len(pdev, bar) < io_size) { |
1119 | printk(KERN_ERR DRV_NAME ": Insufficient PCI resources, aborting\n"); | 1119 | printk(KERN_ERR DRV_NAME ": Insufficient PCI resources, aborting\n"); |
1120 | err = -EIO; | 1120 | err = -EIO; |
1121 | goto err_out; | 1121 | goto err_out; |
1122 | } | 1122 | } |
1123 | 1123 | ||
1124 | pioaddr = pci_resource_start(pdev, 0); /* IO map base address */ | 1124 | pioaddr = pci_resource_start(pdev, bar); /* IO map base address */ |
1125 | pci_set_master(pdev); | 1125 | pci_set_master(pdev); |
1126 | 1126 | ||
1127 | dev = alloc_etherdev(sizeof(struct r6040_private)); | 1127 | dev = alloc_etherdev(sizeof(struct r6040_private)); |