Skip to content

Commit 8c40012

Browse files
hkallweitNipaLocal
authored andcommitted
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 <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent ba4a66d commit 8c40012

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/net/phy/fixed_phy.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,6 @@ struct phy_device *fixed_phy_register(const struct fixed_phy_status *status,
172172
return ERR_PTR(-EINVAL);
173173
}
174174

175-
/* propagate the fixed link values to struct phy_device */
176-
phy->link = 1;
177-
phy->speed = status->speed;
178-
phy->duplex = status->duplex;
179-
phy->pause = status->pause;
180-
phy->asym_pause = status->asym_pause;
181-
182175
of_node_get(np);
183176
phy->mdio.dev.of_node = np;
184177
phy->is_pseudo_fixed_link = true;

0 commit comments

Comments
 (0)