diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2025-11-19 07:55:47 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-20 18:18:54 -0800 |
| commit | d99b408ed8e5f7c070274f4d6c73023b2aae22b3 (patch) | |
| tree | 0e27a4378d229c5f7eb43a409daa24fca56183a2 /drivers/net/phy/fixed_phy.c | |
| parent | bd048f8ce6ce8d5e16415fd6f7506e916cb3d418 (diff) | |
net: phy: fixed_phy: remove not needed initialization of phy_device members
All these members are populated by the phylib state machine once the
PHY has been started, based on the fixed autoneg results.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/bc666a53-5469-4e9c-85a1-dd285aadfe4f@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/fixed_phy.c')
| -rw-r--r-- | drivers/net/phy/fixed_phy.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c index 1ea67119f08f..50684271f81a 100644 --- a/drivers/net/phy/fixed_phy.c +++ b/drivers/net/phy/fixed_phy.c @@ -173,13 +173,6 @@ struct phy_device *fixed_phy_register(const struct fixed_phy_status *status, return ERR_PTR(-EINVAL); } - /* propagate the fixed link values to struct phy_device */ - phy->link = 1; - phy->speed = status->speed; - phy->duplex = status->duplex; - phy->pause = status->pause; - phy->asym_pause = status->asym_pause; - of_node_get(np); phy->mdio.dev.of_node = np; phy->is_pseudo_fixed_link = true; |