diff options
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 78a4250e004f..7dd4ded13d97 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -3786,8 +3786,7 @@ static int e1000_clean(struct napi_struct *napi, int budget) | |||
3786 | struct net_device *poll_dev = adapter->netdev; | 3786 | struct net_device *poll_dev = adapter->netdev; |
3787 | int tx_cleaned = 0, work_done = 0; | 3787 | int tx_cleaned = 0, work_done = 0; |
3788 | 3788 | ||
3789 | /* Must NOT use netdev_priv macro here. */ | 3789 | adapter = netdev_priv(poll_dev); |
3790 | adapter = poll_dev->priv; | ||
3791 | 3790 | ||
3792 | /* e1000_clean is called per-cpu. This lock protects | 3791 | /* e1000_clean is called per-cpu. This lock protects |
3793 | * tx_ring[0] from being cleaned by multiple cpus | 3792 | * tx_ring[0] from being cleaned by multiple cpus |
@@ -4782,7 +4781,7 @@ static pci_ers_result_t e1000_io_error_detected(struct pci_dev *pdev, | |||
4782 | pci_channel_state_t state) | 4781 | pci_channel_state_t state) |
4783 | { | 4782 | { |
4784 | struct net_device *netdev = pci_get_drvdata(pdev); | 4783 | struct net_device *netdev = pci_get_drvdata(pdev); |
4785 | struct e1000_adapter *adapter = netdev->priv; | 4784 | struct e1000_adapter *adapter = netdev_priv(netdev); |
4786 | 4785 | ||
4787 | netif_device_detach(netdev); | 4786 | netif_device_detach(netdev); |
4788 | 4787 | ||
@@ -4804,7 +4803,7 @@ static pci_ers_result_t e1000_io_error_detected(struct pci_dev *pdev, | |||
4804 | static pci_ers_result_t e1000_io_slot_reset(struct pci_dev *pdev) | 4803 | static pci_ers_result_t e1000_io_slot_reset(struct pci_dev *pdev) |
4805 | { | 4804 | { |
4806 | struct net_device *netdev = pci_get_drvdata(pdev); | 4805 | struct net_device *netdev = pci_get_drvdata(pdev); |
4807 | struct e1000_adapter *adapter = netdev->priv; | 4806 | struct e1000_adapter *adapter = netdev_priv(netdev); |
4808 | struct e1000_hw *hw = &adapter->hw; | 4807 | struct e1000_hw *hw = &adapter->hw; |
4809 | int err; | 4808 | int err; |
4810 | 4809 | ||
@@ -4838,7 +4837,7 @@ static pci_ers_result_t e1000_io_slot_reset(struct pci_dev *pdev) | |||
4838 | static void e1000_io_resume(struct pci_dev *pdev) | 4837 | static void e1000_io_resume(struct pci_dev *pdev) |
4839 | { | 4838 | { |
4840 | struct net_device *netdev = pci_get_drvdata(pdev); | 4839 | struct net_device *netdev = pci_get_drvdata(pdev); |
4841 | struct e1000_adapter *adapter = netdev->priv; | 4840 | struct e1000_adapter *adapter = netdev_priv(netdev); |
4842 | struct e1000_hw *hw = &adapter->hw; | 4841 | struct e1000_hw *hw = &adapter->hw; |
4843 | 4842 | ||
4844 | e1000_init_manageability(adapter); | 4843 | e1000_init_manageability(adapter); |