aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-06-02 23:46:06 +0200
committerDavid Bauer <mail@david-bauer.net>2021-06-03 00:00:55 +0200
commitc5a8b85b72c79e302da0297093be329b3216c57b (patch)
treec230945afd0fe13012665830022c5931aa08cbe3 /target/linux/generic
parent766e0f584a325b0b80a97bbc86ca515d97c63001 (diff)
downloadupstream-c5a8b85b72c79e302da0297093be329b3216c57b.tar.gz
upstream-c5a8b85b72c79e302da0297093be329b3216c57b.tar.bz2
upstream-c5a8b85b72c79e302da0297093be329b3216c57b.zip
kernel: ar8216: remove soft_reset
ar8xxx_soft_reset is effectively a NOP function. In the PHY state machine, the availability and result of a soft_reset function makes no difference for the code flow. Thus, we can safely remove this method. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index dbcb1c41c4..11cb18e4f3 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -2731,13 +2731,6 @@ ar8xxx_phy_remove(struct phy_device *phydev)
ar8xxx_free(priv);
}
-static int
-ar8xxx_phy_soft_reset(struct phy_device *phydev)
-{
- /* we don't need an extra reset */
- return 0;
-}
-
static struct phy_driver ar8xxx_phy_driver[] = {
{
.phy_id = 0x004d0000,
@@ -2749,7 +2742,6 @@ static struct phy_driver ar8xxx_phy_driver[] = {
.config_init = ar8xxx_phy_config_init,
.config_aneg = ar8xxx_phy_config_aneg,
.read_status = ar8xxx_phy_read_status,
- .soft_reset = ar8xxx_phy_soft_reset,
.get_features = ar8xxx_get_features,
}
};