igb: make dev_spec a union and remove dynamic allocation
This patch makes dev_spec a union and simplifies it so that it does not require dynamic allocation and freeing in the driver. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4d6b725e4d
commit
c1889bfe68
@ -1329,7 +1329,6 @@ err_eeprom:
|
||||
if (hw->flash_address)
|
||||
iounmap(hw->flash_address);
|
||||
|
||||
igb_remove_device(hw);
|
||||
igb_free_queues(adapter);
|
||||
err_sw_init:
|
||||
err_hw_init:
|
||||
@ -1389,7 +1388,6 @@ static void __devexit igb_remove(struct pci_dev *pdev)
|
||||
if (!igb_check_reset_block(&adapter->hw))
|
||||
igb_reset_phy(&adapter->hw);
|
||||
|
||||
igb_remove_device(&adapter->hw);
|
||||
igb_reset_interrupt_capability(adapter);
|
||||
|
||||
igb_free_queues(adapter);
|
||||
|
Reference in New Issue
Block a user