Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: mdio-thunder: add missed pci_release_regions in remove

The driver forgets to call pci_release_regions() in remove like that
in probe failure.
Add the missed call to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Chuhong Yuan and committed by
David S. Miller
462f8554 9cf1cd8e

+1
+1
drivers/net/phy/mdio-thunder.c
··· 129 129 mdiobus_free(bus->mii_bus); 130 130 oct_mdio_writeq(0, bus->register_base + SMI_EN); 131 131 } 132 + pci_release_regions(pdev); 132 133 pci_set_drvdata(pdev, NULL); 133 134 } 134 135