Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
d99b408e bd048f8c

-7
-7
drivers/net/phy/fixed_phy.c
··· 173 173 return ERR_PTR(-EINVAL); 174 174 } 175 175 176 - /* propagate the fixed link values to struct phy_device */ 177 - phy->link = 1; 178 - phy->speed = status->speed; 179 - phy->duplex = status->duplex; 180 - phy->pause = status->pause; 181 - phy->asym_pause = status->asym_pause; 182 - 183 176 of_node_get(np); 184 177 phy->mdio.dev.of_node = np; 185 178 phy->is_pseudo_fixed_link = true;