From: Chuhong Yuan Date: Fri, 6 Dec 2019 07:54:46 +0000 (+0800) Subject: phy: mdio-thunder: add missed pci_release_regions in remove X-Git-Tag: v5.10.7~3665^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=462f8554a89643dcd0981790101a31a01aa812fe;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/mdio-thunder.c b/drivers/net/phy/mdio-thunder.c index b6128ae7f14f..2a97938d1972 100644 --- a/drivers/net/phy/mdio-thunder.c +++ b/drivers/net/phy/mdio-thunder.c @@ -129,6 +129,7 @@ static void thunder_mdiobus_pci_remove(struct pci_dev *pdev) mdiobus_free(bus->mii_bus); oct_mdio_writeq(0, bus->register_base + SMI_EN); } + pci_release_regions(pdev); pci_set_drvdata(pdev, NULL); }