From 12f396a8b02e57f579d2863299948b5172ffdf6f Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 26 Aug 2010 18:33:28 +0200 Subject: net: rework the mii support this rework is done in order to add a phylib and allow to have phy driver support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- drivers/net/usb/usbnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/net/usb/usbnet.c') diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index cc170f6611..983d464bd0 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -160,7 +160,7 @@ static int usbnet_init(struct eth_device *edev) return ret; } - miiphy_restart_aneg(&dev->miiphy); + miidev_restart_aneg(&dev->miidev); return 0; } @@ -171,10 +171,10 @@ static int usbnet_open(struct eth_device *edev) dev_dbg(&edev->dev, "%s\n",__func__); - if (miiphy_wait_aneg(&dev->miiphy)) + if (miidev_wait_aneg(&dev->miidev)) return -1; - miiphy_print_status(&dev->miiphy); + miidev_print_status(&dev->miidev); return 0; } -- cgit v1.2.3