diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index b90584d21a07..2b72e9daca09 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -742,7 +742,7 @@ void devm_phy_put(struct device *dev, struct phy *phy) if (!phy) return; - r = devres_destroy(dev, devm_phy_release, devm_phy_match, phy); + r = devres_release(dev, devm_phy_release, devm_phy_match, phy); dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n"); } EXPORT_SYMBOL_GPL(devm_phy_put);