diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index c3e978af38c4249fb323738396d04a7adf648580..5d4be699ab84acbef3749f9ec66b814017c13c44 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -620,7 +620,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);