|
@@ -2652,7 +2652,7 @@ err_eeprom:
|
|
|
iounmap(hw->flash_address);
|
|
|
err_sw_init:
|
|
|
igb_clear_interrupt_scheme(adapter);
|
|
|
- iounmap(hw->hw_addr);
|
|
|
+ pci_iounmap(pdev, hw->hw_addr);
|
|
|
err_ioremap:
|
|
|
free_netdev(netdev);
|
|
|
err_alloc_etherdev:
|
|
@@ -2819,7 +2819,7 @@ static void igb_remove(struct pci_dev *pdev)
|
|
|
igb_disable_sriov(pdev);
|
|
|
#endif
|
|
|
|
|
|
- iounmap(hw->hw_addr);
|
|
|
+ pci_iounmap(pdev, hw->hw_addr);
|
|
|
if (hw->flash_address)
|
|
|
iounmap(hw->flash_address);
|
|
|
pci_release_selected_regions(pdev,
|