aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-12-18 11:28:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-12-18 11:28:47 +0000
commit2f9b042d694c26c708e4ee5426ffb55a001b741c (patch)
tree6f72faeaa4c7c290afbcf2aefa33ad5979b4102a /target/linux/generic/files/drivers
parent2289c7a010fe1a68424b1a3cc54af7164e011e7e (diff)
downloadupstream-2f9b042d694c26c708e4ee5426ffb55a001b741c.tar.gz
upstream-2f9b042d694c26c708e4ee5426ffb55a001b741c.tar.bz2
upstream-2f9b042d694c26c708e4ee5426ffb55a001b741c.zip
ar8216: Inline function ar8xxx_create_mii
Inline function ar8xxx_create_mii. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43743
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index b72eca01e4..0dc55e83cf 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -2775,18 +2775,6 @@ ar8xxx_free(struct ar8xxx_priv *priv)
kfree(priv);
}
-static struct ar8xxx_priv *
-ar8xxx_create_mii(struct mii_bus *bus)
-{
- struct ar8xxx_priv *priv;
-
- priv = ar8xxx_create();
- if (priv)
- priv->mii_bus = bus;
-
- return priv;
-}
-
static int
ar8xxx_probe_switch(struct ar8xxx_priv *priv)
{
@@ -2990,12 +2978,14 @@ ar8xxx_phy_probe(struct phy_device *phydev)
if (priv->mii_bus == phydev->bus)
goto found;
- priv = ar8xxx_create_mii(phydev->bus);
+ priv = ar8xxx_create();
if (priv == NULL) {
ret = -ENOMEM;
goto unlock;
}
+ priv->mii_bus = phydev->bus;
+
ret = ar8xxx_probe_switch(priv);
if (ret)
goto free_priv;