Merge 5.9-rc8 into usb-next
[linux-2.6-microblaze.git] / drivers / phy / ti / phy-am654-serdes.c
index 6f3c11b..2ff56ce 100644 (file)
@@ -822,8 +822,10 @@ static int serdes_am654_probe(struct platform_device *pdev)
        pm_runtime_enable(dev);
 
        phy = devm_phy_create(dev, NULL, &ops);
-       if (IS_ERR(phy))
-               return PTR_ERR(phy);
+       if (IS_ERR(phy)) {
+               ret = PTR_ERR(phy);
+               goto clk_err;
+       }
 
        phy_set_drvdata(phy, am654_phy);
        phy_provider = devm_of_phy_provider_register(dev, serdes_am654_xlate);