aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files-4.9
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-02-15 09:11:41 +0100
committerJohn Crispin <john@phrozen.org>2017-02-15 09:12:00 +0100
commit6cb0372d42761a0d8e0113bc17f395daaaa4b309 (patch)
tree2d58b875ae54145db43775b52f0983805b574368 /target/linux/ramips/files-4.9
parent38f9d08f57e3c3368790a633cd686dfab5acf974 (diff)
downloadupstream-6cb0372d42761a0d8e0113bc17f395daaaa4b309.tar.gz
upstream-6cb0372d42761a0d8e0113bc17f395daaaa4b309.tar.bz2
upstream-6cb0372d42761a0d8e0113bc17f395daaaa4b309.zip
ramips: fix mt7621 ethernet support for v4.9
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ramips/files-4.9')
-rw-r--r--target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/soc_mt7621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/soc_mt7621.c b/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/soc_mt7621.c
index b1c84fc7ab..3a8653e5e2 100644
--- a/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/soc_mt7621.c
+++ b/target/linux/ramips/files-4.9/drivers/net/ethernet/mtk/soc_mt7621.c
@@ -82,7 +82,7 @@ static const u16 mt7621_reg_table[FE_REG_COUNT] = {
static int mt7621_gsw_config(struct fe_priv *priv)
{
- if (priv->mii_bus && priv->mii_bus->phy_map[0x1f])
+ if (priv->mii_bus && mdiobus_get_phy(priv->mii_bus, 0x1f))
mt7530_probe(priv->device, NULL, priv->mii_bus, 1);
return 0;