PCI: Use newly defined PCI channel offline routine
Use newly minted routine to access the PCI channel state. Signed-off-by: Linas Vepstas <linas@linas.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a7369f1f65
commit
81b1955eef
@@ -3602,7 +3602,7 @@ e1000_update_stats(struct e1000_adapter *adapter)
|
||||
*/
|
||||
if (adapter->link_speed == 0)
|
||||
return;
|
||||
if (pdev->error_state && pdev->error_state != pci_channel_io_normal)
|
||||
if (pci_channel_offline(pdev))
|
||||
return;
|
||||
|
||||
spin_lock_irqsave(&adapter->stats_lock, flags);
|
||||
|
Reference in New Issue
Block a user