Skip to content

Commit 2758246

Browse files
tititiou36gregkh
authored andcommitted
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: e0b6dc0 ("usb: dwc3: add generic driver to support flattened") Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 268eb6f commit 2758246

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/usb/dwc3/dwc3-generic-plat.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,8 @@ static int dwc3_generic_probe(struct platform_device *pdev)
8585
static void dwc3_generic_remove(struct platform_device *pdev)
8686
{
8787
struct dwc3 *dwc = platform_get_drvdata(pdev);
88-
struct dwc3_generic *dwc3g = to_dwc3_generic(dwc);
8988

9089
dwc3_core_remove(dwc);
91-
92-
clk_bulk_disable_unprepare(dwc3g->num_clocks, dwc3g->clks);
9390
}
9491

9592
static int dwc3_generic_suspend(struct device *dev)

0 commit comments

Comments
 (0)