aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00pci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
index 238f1c1e4ad0..b8c6a8c9d6d2 100644
--- a/drivers/net/wireless/rt2x00/rt2x00pci.c
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
@@ -350,9 +350,9 @@ static void rt2x00pci_free_reg(struct rt2x00_dev *rt2x00dev)
350 kfree(rt2x00dev->eeprom); 350 kfree(rt2x00dev->eeprom);
351 rt2x00dev->eeprom = NULL; 351 rt2x00dev->eeprom = NULL;
352 352
353 if (rt2x00dev->csr_addr) { 353 if (rt2x00dev->csr.base) {
354 iounmap(rt2x00dev->csr_addr); 354 iounmap(rt2x00dev->csr.base);
355 rt2x00dev->csr_addr = NULL; 355 rt2x00dev->csr.base = NULL;
356 } 356 }
357} 357}
358 358
@@ -360,9 +360,9 @@ static int rt2x00pci_alloc_reg(struct rt2x00_dev *rt2x00dev)
360{ 360{
361 struct pci_dev *pci_dev = rt2x00dev_pci(rt2x00dev); 361 struct pci_dev *pci_dev = rt2x00dev_pci(rt2x00dev);
362 362
363 rt2x00dev->csr_addr = ioremap(pci_resource_start(pci_dev, 0), 363 rt2x00dev->csr.base = ioremap(pci_resource_start(pci_dev, 0),
364 pci_resource_len(pci_dev, 0)); 364 pci_resource_len(pci_dev, 0));
365 if (!rt2x00dev->csr_addr) 365 if (!rt2x00dev->csr.base)
366 goto exit; 366 goto exit;
367 367
368 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL); 368 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL);