summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2017-09-30 00:10:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-10-06 06:01:01 +0200
commit22b7ab1b4e9afc15d98783f13b613c328b07080b (patch)
treeaee3f6a34c4e4930bd4e8e1ab8e7b540aff0d1e2
parent22e1ba9f3645057586abc866ed0925bd28d5b8d2 (diff)
downloadbarebox-22b7ab1b4e9afc15d98783f13b613c328b07080b.tar.gz
net: ag71xx: define parent devices
without it we are not able to set mac address from other driver. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/ag71xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ag71xx.c b/drivers/net/ag71xx.c
index 1cec263..a422aac 100644
--- a/drivers/net/ag71xx.c
+++ b/drivers/net/ag71xx.c
@@ -580,6 +580,7 @@ static int ag71xx_probe(struct device_d *dev)
miibus = &priv->miibus;
dev->priv = edev;
edev->priv = priv;
+ edev->parent = dev;
edev->init = ag71xx_ether_init;
edev->open = ag71xx_ether_open;
@@ -597,6 +598,7 @@ static int ag71xx_probe(struct device_d *dev)
miibus->read = ag71xx_ether_mii_read;
miibus->write = ag71xx_ether_mii_write;
miibus->priv = priv;
+ miibus->parent = dev;
/* enable switch core */
rd = ar7240_reg_rd(AR71XX_PLL_BASE + AR933X_ETHSW_CLOCK_CONTROL_REG);