9
0
Fork 0

designware: set parent for eth_device and miibus

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-10-14 23:05:16 +02:00 committed by Sascha Hauer
parent 052a701207
commit 5d1d1c65a6
1 changed files with 2 additions and 0 deletions

View File

@ -425,6 +425,7 @@ static int dwc_ether_probe(struct device_d *dev)
miibus = &priv->miibus;
edev->priv = priv;
edev->parent = dev;
edev->init = dwc_ether_init;
edev->open = dwc_ether_open;
edev->send = dwc_ether_send;
@ -435,6 +436,7 @@ static int dwc_ether_probe(struct device_d *dev)
priv->phy_addr = pdata->phy_addr;
priv->interface = pdata->interface;
miibus->parent = dev;
miibus->read = dwc_ether_mii_read;
miibus->write = dwc_ether_mii_write;
miibus->priv = priv;