summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-11 16:57:31 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-11 16:57:31 +0000
commit9525a075c1b294128ca17f41b76ab63134a3b322 (patch)
treee253183b0aedc8b14989563b72fe4593bb0d5d3e /target/linux
parent94806a13af4fd0642218007c68f54273c4544896 (diff)
downloadmtk-20170518-9525a075c1b294128ca17f41b76ab63134a3b322.zip
mtk-20170518-9525a075c1b294128ca17f41b76ab63134a3b322.tar.gz
mtk-20170518-9525a075c1b294128ca17f41b76ab63134a3b322.tar.bz2
ar8216: remove superfluous code from ar8216_config_init
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35562
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c12
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 b179117..811e406 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;