Skip to content

Commit 462f855

Browse files
WillLesterdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9cf1cd8 commit 462f855

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/phy/mdio-thunder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ static void thunder_mdiobus_pci_remove(struct pci_dev *pdev)
129129
mdiobus_free(bus->mii_bus);
130130
oct_mdio_writeq(0, bus->register_base + SMI_EN);
131131
}
132+
pci_release_regions(pdev);
132133
pci_set_drvdata(pdev, NULL);
133134
}
134135

0 commit comments

Comments
 (0)