diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-11 16:57:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-11 16:57:31 +0000 |
commit | aa1758313e397d3607e8bd692a3cf58ce50f680a (patch) | |
tree | a58d8ac1df6b7c2c833ccda508882593b70b65c8 /target/linux | |
parent | 49e680f15772d9c4eb965c928b5a243e190e738a (diff) | |
download | master-187ad058-aa1758313e397d3607e8bd692a3cf58ce50f680a.tar.gz master-187ad058-aa1758313e397d3607e8bd692a3cf58ce50f680a.tar.bz2 master-187ad058-aa1758313e397d3607e8bd692a3cf58ce50f680a.zip |
ar8216: remove superfluous code from ar8216_config_init
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35562 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index b1791172e0..811e406f3a 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -1861,18 +1861,6 @@ ar8216_config_init(struct phy_device *phydev) if (phydev->addr != 0) { if (chip_is_ar8316(priv)) { - /* check if we're attaching to the switch twice */ - phydev = phydev->bus->phy_map[0]; - if (!phydev) - return 0; - - /* switch device has not been initialized, reuse priv */ - if (!phydev->priv) { - priv->port4_phy = true; - priv->dev.ports = (AR8216_NUM_PORTS - 1); - return 0; - } - /* switch device has been initialized, reinit */ priv->dev.ports = (AR8216_NUM_PORTS - 1); priv->initialized = false; |