diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index 96068e0d841aebcbf514cd3916c28fbb120e7973..dcbe278086dca683c5eb5d8703861c93c3fc1317 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -2427,7 +2427,7 @@ static int sfp_probe(struct platform_device *pdev) platform_set_drvdata(pdev, sfp); - err = devm_add_action(sfp->dev, sfp_cleanup, sfp); + err = devm_add_action_or_reset(sfp->dev, sfp_cleanup, sfp); if (err < 0) return err;