diff options
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r-- | drivers/net/igb/igb.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h index 530d7aa4cb86..a2a812deb6b8 100644 --- a/drivers/net/igb/igb.h +++ b/drivers/net/igb/igb.h | |||
@@ -313,24 +313,24 @@ extern void igb_set_ethtool_ops(struct net_device *); | |||
313 | 313 | ||
314 | static inline s32 igb_reset_phy(struct e1000_hw *hw) | 314 | static inline s32 igb_reset_phy(struct e1000_hw *hw) |
315 | { | 315 | { |
316 | if (hw->phy.ops.reset_phy) | 316 | if (hw->phy.ops.reset) |
317 | return hw->phy.ops.reset_phy(hw); | 317 | return hw->phy.ops.reset(hw); |
318 | 318 | ||
319 | return 0; | 319 | return 0; |
320 | } | 320 | } |
321 | 321 | ||
322 | static inline s32 igb_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data) | 322 | static inline s32 igb_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data) |
323 | { | 323 | { |
324 | if (hw->phy.ops.read_phy_reg) | 324 | if (hw->phy.ops.read_reg) |
325 | return hw->phy.ops.read_phy_reg(hw, offset, data); | 325 | return hw->phy.ops.read_reg(hw, offset, data); |
326 | 326 | ||
327 | return 0; | 327 | return 0; |
328 | } | 328 | } |
329 | 329 | ||
330 | static inline s32 igb_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data) | 330 | static inline s32 igb_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data) |
331 | { | 331 | { |
332 | if (hw->phy.ops.write_phy_reg) | 332 | if (hw->phy.ops.write_reg) |
333 | return hw->phy.ops.write_phy_reg(hw, offset, data); | 333 | return hw->phy.ops.write_reg(hw, offset, data); |
334 | 334 | ||
335 | return 0; | 335 | return 0; |
336 | } | 336 | } |