Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcb3336c authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by David S. Miller
Browse files

mv643xx_eth: fix the order of mdiobus_{unregister, free}() calls

parent fb5e2f9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2435,8 +2435,8 @@ static int mv643xx_eth_shared_remove(struct platform_device *pdev)
	struct mv643xx_eth_shared_platform_data *pd = pdev->dev.platform_data;

	if (pd == NULL || pd->shared_smi == NULL) {
		mdiobus_free(msp->smi_bus);
		mdiobus_unregister(msp->smi_bus);
		mdiobus_free(msp->smi_bus);
	}
	if (msp->err_interrupt != NO_IRQ)
		free_irq(msp->err_interrupt, msp);