mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
phy: realtek: don't duplicate genphy_startup
rtl8211e_startup() is an exact copy of genphy_startup(). Use that instead of duplicating it. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
This commit is contained in:
committed by
Tom Rini
parent
8c0ed61390
commit
0b99afec9c
@@ -384,17 +384,6 @@ static int rtl8211x_startup(struct phy_device *phydev)
|
|||||||
return rtl8211x_parse_status(phydev);
|
return rtl8211x_parse_status(phydev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtl8211e_startup(struct phy_device *phydev)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
ret = genphy_update_link(phydev);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return genphy_parse_link(phydev);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int rtl8211f_startup(struct phy_device *phydev)
|
static int rtl8211f_startup(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
@@ -428,7 +417,7 @@ U_BOOT_PHY_DRIVER(rtl8211e) = {
|
|||||||
.features = PHY_GBIT_FEATURES,
|
.features = PHY_GBIT_FEATURES,
|
||||||
.probe = &rtl8211e_probe,
|
.probe = &rtl8211e_probe,
|
||||||
.config = &rtl8211e_config,
|
.config = &rtl8211e_config,
|
||||||
.startup = &rtl8211e_startup,
|
.startup = &genphy_startup,
|
||||||
.shutdown = &genphy_shutdown,
|
.shutdown = &genphy_shutdown,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -465,6 +454,6 @@ U_BOOT_PHY_DRIVER(rtl8201f) = {
|
|||||||
.features = PHY_BASIC_FEATURES,
|
.features = PHY_BASIC_FEATURES,
|
||||||
.probe = &rtl8210f_probe,
|
.probe = &rtl8210f_probe,
|
||||||
.config = &rtl8201f_config,
|
.config = &rtl8201f_config,
|
||||||
.startup = &rtl8211e_startup,
|
.startup = &genphy_startup,
|
||||||
.shutdown = &genphy_shutdown,
|
.shutdown = &genphy_shutdown,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user