aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-11-17 23:28:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-20 04:39:40 -0500
commitbcb3336ce4354395e38df7e2da110fca61f86a84 (patch)
treeb27f3b6e1ff278a37d03f483ab7ce578d423f7a3 /drivers/net/mv643xx_eth.c
parentfb5e2f9b9410a4362897d12dc1ed4f7cec1b0d45 (diff)
mv643xx_eth: fix the order of mdiobus_{unregister, free}() calls
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r--drivers/net/mv643xx_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index b9dcdbd369f8..baa7e845a011 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -2435,8 +2435,8 @@ static int mv643xx_eth_shared_remove(struct platform_device *pdev)
2435 struct mv643xx_eth_shared_platform_data *pd = pdev->dev.platform_data; 2435 struct mv643xx_eth_shared_platform_data *pd = pdev->dev.platform_data;
2436 2436
2437 if (pd == NULL || pd->shared_smi == NULL) { 2437 if (pd == NULL || pd->shared_smi == NULL) {
2438 mdiobus_free(msp->smi_bus);
2439 mdiobus_unregister(msp->smi_bus); 2438 mdiobus_unregister(msp->smi_bus);
2439 mdiobus_free(msp->smi_bus);
2440 } 2440 }
2441 if (msp->err_interrupt != NO_IRQ) 2441 if (msp->err_interrupt != NO_IRQ)
2442 free_irq(msp->err_interrupt, msp); 2442 free_irq(msp->err_interrupt, msp);