projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cf1cd8
)
phy: mdio-thunder: add missed pci_release_regions in remove
author
Chuhong Yuan
<hslester96@gmail.com>
Fri, 6 Dec 2019 07:54:46 +0000
(15:54 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 6 Dec 2019 20:05:06 +0000
(12:05 -0800)
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>
drivers/net/phy/mdio-thunder.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/mdio-thunder.c
b/drivers/net/phy/mdio-thunder.c
index b6128ae7f14f3e1dfc092b6d48e2db7644cd4b35..2a97938d1972efddf7ab4d13e66615462208db77 100644
(file)
--- 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);
}