diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945-mac.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c index aa8f5c0bd642..63ec05b15ba3 100644 --- a/drivers/net/wireless/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/iwlegacy/3945-mac.c | |||
@@ -3655,7 +3655,7 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
3655 | /*********************** | 3655 | /*********************** |
3656 | * 3. Read REV Register | 3656 | * 3. Read REV Register |
3657 | * ********************/ | 3657 | * ********************/ |
3658 | il->hw_base = pci_iomap(pdev, 0, 0); | 3658 | il->hw_base = pci_ioremap_bar(pdev, 0); |
3659 | if (!il->hw_base) { | 3659 | if (!il->hw_base) { |
3660 | err = -ENODEV; | 3660 | err = -ENODEV; |
3661 | goto out_pci_release_regions; | 3661 | goto out_pci_release_regions; |
@@ -3780,7 +3780,7 @@ out_unset_hw_params: | |||
3780 | out_eeprom_free: | 3780 | out_eeprom_free: |
3781 | il_eeprom_free(il); | 3781 | il_eeprom_free(il); |
3782 | out_iounmap: | 3782 | out_iounmap: |
3783 | pci_iounmap(pdev, il->hw_base); | 3783 | iounmap(il->hw_base); |
3784 | out_pci_release_regions: | 3784 | out_pci_release_regions: |
3785 | pci_release_regions(pdev); | 3785 | pci_release_regions(pdev); |
3786 | out_pci_disable_device: | 3786 | out_pci_disable_device: |
@@ -3860,7 +3860,7 @@ il3945_pci_remove(struct pci_dev *pdev) | |||
3860 | free_irq(pdev->irq, il); | 3860 | free_irq(pdev->irq, il); |
3861 | pci_disable_msi(pdev); | 3861 | pci_disable_msi(pdev); |
3862 | 3862 | ||
3863 | pci_iounmap(pdev, il->hw_base); | 3863 | iounmap(il->hw_base); |
3864 | pci_release_regions(pdev); | 3864 | pci_release_regions(pdev); |
3865 | pci_disable_device(pdev); | 3865 | pci_disable_device(pdev); |
3866 | pci_set_drvdata(pdev, NULL); | 3866 | pci_set_drvdata(pdev, NULL); |
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index 90c9bfb089f4..7bf78bf866ca 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -6224,7 +6224,7 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6224 | /*********************** | 6224 | /*********************** |
6225 | * 3. Read REV register | 6225 | * 3. Read REV register |
6226 | ***********************/ | 6226 | ***********************/ |
6227 | il->hw_base = pci_iomap(pdev, 0, 0); | 6227 | il->hw_base = pci_ioremap_bar(pdev, 0); |
6228 | if (!il->hw_base) { | 6228 | if (!il->hw_base) { |
6229 | err = -ENODEV; | 6229 | err = -ENODEV; |
6230 | goto out_pci_release_regions; | 6230 | goto out_pci_release_regions; |
@@ -6356,7 +6356,7 @@ out_disable_msi: | |||
6356 | out_free_eeprom: | 6356 | out_free_eeprom: |
6357 | il_eeprom_free(il); | 6357 | il_eeprom_free(il); |
6358 | out_iounmap: | 6358 | out_iounmap: |
6359 | pci_iounmap(pdev, il->hw_base); | 6359 | iounmap(il->hw_base); |
6360 | out_pci_release_regions: | 6360 | out_pci_release_regions: |
6361 | pci_set_drvdata(pdev, NULL); | 6361 | pci_set_drvdata(pdev, NULL); |
6362 | pci_release_regions(pdev); | 6362 | pci_release_regions(pdev); |
@@ -6438,7 +6438,7 @@ il4965_pci_remove(struct pci_dev *pdev) | |||
6438 | 6438 | ||
6439 | free_irq(il->pci_dev->irq, il); | 6439 | free_irq(il->pci_dev->irq, il); |
6440 | pci_disable_msi(il->pci_dev); | 6440 | pci_disable_msi(il->pci_dev); |
6441 | pci_iounmap(pdev, il->hw_base); | 6441 | iounmap(il->hw_base); |
6442 | pci_release_regions(pdev); | 6442 | pci_release_regions(pdev); |
6443 | pci_disable_device(pdev); | 6443 | pci_disable_device(pdev); |
6444 | pci_set_drvdata(pdev, NULL); | 6444 | pci_set_drvdata(pdev, NULL); |
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index df9b5b462839..fd2a4eea85e4 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -2114,20 +2114,20 @@ extern void il_write_targ_mem(struct il_priv *il, u32 addr, u32 val); | |||
2114 | static inline void | 2114 | static inline void |
2115 | _il_write8(struct il_priv *il, u32 ofs, u8 val) | 2115 | _il_write8(struct il_priv *il, u32 ofs, u8 val) |
2116 | { | 2116 | { |
2117 | iowrite8(val, il->hw_base + ofs); | 2117 | writeb(val, il->hw_base + ofs); |
2118 | } | 2118 | } |
2119 | #define il_write8(il, ofs, val) _il_write8(il, ofs, val) | 2119 | #define il_write8(il, ofs, val) _il_write8(il, ofs, val) |
2120 | 2120 | ||
2121 | static inline void | 2121 | static inline void |
2122 | _il_wr(struct il_priv *il, u32 ofs, u32 val) | 2122 | _il_wr(struct il_priv *il, u32 ofs, u32 val) |
2123 | { | 2123 | { |
2124 | iowrite32(val, il->hw_base + ofs); | 2124 | writel(val, il->hw_base + ofs); |
2125 | } | 2125 | } |
2126 | 2126 | ||
2127 | static inline u32 | 2127 | static inline u32 |
2128 | _il_rd(struct il_priv *il, u32 ofs) | 2128 | _il_rd(struct il_priv *il, u32 ofs) |
2129 | { | 2129 | { |
2130 | return ioread32(il->hw_base + ofs); | 2130 | return readl(il->hw_base + ofs); |
2131 | } | 2131 | } |
2132 | 2132 | ||
2133 | static inline void | 2133 | static inline void |