Commit 2758246d authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman
Browse files

usb: dwc3: Don't call clk_bulk_disable_unprepare() twice



devm_clk_bulk_get_all_enabled() is used in the probe, so
clk_bulk_disable_unprepare() should not be called explicitly in the remove
function.

Fixes: e0b6dc00 ("usb: dwc3: add generic driver to support flattened")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 268eb6fb
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -85,11 +85,8 @@ static int dwc3_generic_probe(struct platform_device *pdev)
static void dwc3_generic_remove(struct platform_device *pdev)
{
	struct dwc3 *dwc = platform_get_drvdata(pdev);
	struct dwc3_generic *dwc3g = to_dwc3_generic(dwc);

	dwc3_core_remove(dwc);

	clk_bulk_disable_unprepare(dwc3g->num_clocks, dwc3g->clks);
}

static int dwc3_generic_suspend(struct device *dev)