From b35b6b005f13cf7b9a84cb200184012d95e719e0 Mon Sep 17 00:00:00 2001
From: Leonard Crestez <leonard.crestez@nxp.com>
Date: Wed, 27 Feb 2019 22:13:05 +0200
Subject: [PATCH] MLK-21052-06 usb: dwc3: Fix build failure by restoring err0
 label in dwc3_probe

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 89943f7ca70261..2360aa5468ca71 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -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);
-- 
GitLab