diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index b6b790f48b0776ebe11f39bea5f376b258b7b2a4..c56e2f0cffa064dc7959a294311a0674e7343c77 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -606,7 +606,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);