Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: e0b6dc00c701 ("usb: dwc3: add generic driver to support flattened")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christophe JAILLET and committed by
Greg Kroah-Hartman
2758246d 268eb6fb

-3
-3
drivers/usb/dwc3/dwc3-generic-plat.c
··· 85 85 static void dwc3_generic_remove(struct platform_device *pdev) 86 86 { 87 87 struct dwc3 *dwc = platform_get_drvdata(pdev); 88 - struct dwc3_generic *dwc3g = to_dwc3_generic(dwc); 89 88 90 89 dwc3_core_remove(dwc); 91 - 92 - clk_bulk_disable_unprepare(dwc3g->num_clocks, dwc3g->clks); 93 90 } 94 91 95 92 static int dwc3_generic_suspend(struct device *dev)