|
@@ -6237,7 +6237,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
|
|
adapter->hw.phy.ms_type = e1000_ms_hw_default;
|
|
adapter->hw.phy.ms_type = e1000_ms_hw_default;
|
|
}
|
|
}
|
|
|
|
|
|
- if (hw->phy.ops.check_reset_block(hw))
|
|
|
|
|
|
+ if (hw->phy.ops.check_reset_block && hw->phy.ops.check_reset_block(hw))
|
|
e_info("PHY reset is blocked due to SOL/IDER session.\n");
|
|
e_info("PHY reset is blocked due to SOL/IDER session.\n");
|
|
|
|
|
|
/* Set initial default active device features */
|
|
/* Set initial default active device features */
|
|
@@ -6404,7 +6404,7 @@ err_register:
|
|
if (!(adapter->flags & FLAG_HAS_AMT))
|
|
if (!(adapter->flags & FLAG_HAS_AMT))
|
|
e1000e_release_hw_control(adapter);
|
|
e1000e_release_hw_control(adapter);
|
|
err_eeprom:
|
|
err_eeprom:
|
|
- if (!hw->phy.ops.check_reset_block(hw))
|
|
|
|
|
|
+ if (hw->phy.ops.check_reset_block && !hw->phy.ops.check_reset_block(hw))
|
|
e1000_phy_hw_reset(&adapter->hw);
|
|
e1000_phy_hw_reset(&adapter->hw);
|
|
err_hw_init:
|
|
err_hw_init:
|
|
kfree(adapter->tx_ring);
|
|
kfree(adapter->tx_ring);
|