Message ID | 20241020-usb_phy_fix-v1-1-7f79243b8e1e@quicinc.com (mailing list archive) |
---|---|
State | Accepted |
Commit | fdce49b5da6e0fb6d077986dec3e90ef2b094b50 |
Headers | show |
Series | usb: phy: Fix API devm_usb_put_phy() can not release the phy | expand |
diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index 06e0fb23566c..06f789097989 100644 --- a/drivers/usb/phy/phy.c +++ b/drivers/usb/phy/phy.c @@ -628,7 +628,7 @@ void devm_usb_put_phy(struct device *dev, struct usb_phy *phy) { int r; - r = devres_destroy(dev, devm_usb_phy_release, devm_usb_phy_match, phy); + r = devres_release(dev, devm_usb_phy_release, devm_usb_phy_match, phy); dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n"); } EXPORT_SYMBOL_GPL(devm_usb_put_phy);