diff options
-rw-r--r-- | drivers/net/mv643xx_eth.c | 2 |
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); |