We should call phy_exit() when we stop using phy, so call it in mhdp_remove(). Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
@@ -1801,6 +1801,8 @@ static int mhdp_remove(struct platform_device *pdev)
return ret;
}
+ phy_exit(mhdp->phy);
+
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);