igc: change default return of igc_read_phy_reg()
[linux-block.git] / drivers / net / ethernet / intel / igc / igc.h
index 9e0bbb2e55e3132bcf4afa83e6ca5b6b7b47cd6b..5901ed9fb545e821939668f3d71069e693ad8319 100644 (file)
@@ -578,7 +578,7 @@ static inline s32 igc_read_phy_reg(struct igc_hw *hw, u32 offset, u16 *data)
        if (hw->phy.ops.read_reg)
                return hw->phy.ops.read_reg(hw, offset, data);
 
-       return 0;
+       return -EOPNOTSUPP;
 }
 
 void igc_reinit_locked(struct igc_adapter *);