summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-12-06 08:54:46 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-06 21:05:06 +0100
commit462f8554a89643dcd0981790101a31a01aa812fe (patch)
tree6051bd655e8718fe178db9242014e63e6a8605dc /drivers
parenttipc: fix ordering of tipc module init and exit routine (diff)
downloadlinux-462f8554a89643dcd0981790101a31a01aa812fe.tar.xz
linux-462f8554a89643dcd0981790101a31a01aa812fe.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/mdio-thunder.c1
1 files changed, 1 insertions, 0 deletions
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);
}