From 0491c6f10feb457dc2b8a53d07cfd67b6931368d Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Thu, 27 Oct 2022 01:58:35 +0800 Subject: [PATCH] igc: change default return of igc_read_phy_reg() backport from https://github.com/torvalds/linux/commit/05682a0a61b6cbecd97a0f37f743b2cbfd516977 Signed-off-by: Jim Ma --- igc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igc.h b/igc.h index 1b08a7d..e549387 100644 --- a/igc.h +++ b/igc.h @@ -534,7 +534,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 *);