net: phy: of_phy_register_fixed_link(): drop redundant initialization
The phy_device_create() function makes all necessary phydev initialization so we can drop phydev->pause and phydev->link initialization in the of_phy_register_fixed_link() function. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
d3c3e40355
commit
d97eeac4e2
|
@ -311,8 +311,6 @@ static struct phy_device *of_phy_register_fixed_link(struct device_node *np,
|
|||
phydev->registered = 1;
|
||||
phydev->speed = 1000;
|
||||
phydev->duplex = 1;
|
||||
phydev->pause = phydev->asym_pause = 0;
|
||||
phydev->link = 1;
|
||||
|
||||
return phydev;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue