MLK-21052-06 usb: dwc3: Fix build failure by restoring err0 label in dwc3_probe
authorLeonard Crestez <leonard.crestez@nxp.com>
Wed, 27 Feb 2019 20:13:05 +0000 (22:13 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
This label was removed by upstream commit 44feb8e6ea2d ("usb: dwc3: use
local copy of resource to fix-up register offset") but we added a new
probe state which needs this error handling label again.

Fixes: fc0d4039c7bf ("MLK-18922-2 usb: dwc3: add OTG capabilities handling")

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
drivers/usb/dwc3/core.c

index 89943f7..2360aa5 100644 (file)
@@ -1527,6 +1527,7 @@ err1:
        pm_runtime_put_sync(&pdev->dev);
        pm_runtime_disable(&pdev->dev);
 
+err0:
        clk_bulk_disable(dwc->num_clks, dwc->clks);
 unprepare_clks:
        clk_bulk_unprepare(dwc->num_clks, dwc->clks);