Commit d99b408e authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski
Browse files

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: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/bc666a53-5469-4e9c-85a1-dd285aadfe4f@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent bd048f8c
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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;