From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RxZqc-00052e-Tn for barebox@lists.infradead.org; Wed, 15 Feb 2012 08:04:19 +0000 From: Sascha Hauer Date: Wed, 15 Feb 2012 09:04:00 +0100 Message-Id: <1329293044-9967-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1329293044-9967-1-git-send-email-s.hauer@pengutronix.de> References: <1329293044-9967-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/6] usb net smsc95xx: add missing mii_unregister To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- drivers/net/usb/smsc95xx.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index f2a2d00..c21705e 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -759,6 +759,9 @@ static int smsc95xx_bind(struct usbnet *dev) static void smsc95xx_unbind(struct usbnet *dev) { struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); + + mii_unregister(&dev->miidev); + if (pdata) { netif_dbg(dev, ifdown, dev->net, "free pdata\n"); free(pdata); -- 1.7.9 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox