Message ID | 20241210-pci-epc-core_fix-v3-1-4d86dd573e4b@quicinc.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d4929755e4d02bd3de3ae5569dab69cb9502c54f |
Delegated to: | Bjorn Helgaas |
Headers | show |
Series | PCI: endpoint: fix bug for 2 APIs and simplify 1 API | expand |
diff --git a/drivers/pci/endpoint/pci-epc-core.c b/drivers/pci/endpoint/pci-epc-core.c index 17f00710925508e60fbd21116af5b424abdcd3e7..71b6d100056e54438d0554f7ee82aaa64e0debb5 100644 --- a/drivers/pci/endpoint/pci-epc-core.c +++ b/drivers/pci/endpoint/pci-epc-core.c @@ -857,7 +857,7 @@ void devm_pci_epc_destroy(struct device *dev, struct pci_epc *epc) { int r; - r = devres_destroy(dev, devm_pci_epc_release, devm_pci_epc_match, + r = devres_release(dev, devm_pci_epc_release, devm_pci_epc_match, epc); dev_WARN_ONCE(dev, r, "couldn't find PCI EPC resource\n"); }