mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
If an error occurs after a successful 'clk_prepare_enable()' call, it must
be undone by a corresponding 'clk_disable_unprepare()' call.
This call is already present in the remove function.
Add this call in the error handling path and reorder the code so that the
'clk_prepare_enable()' call happens later in the function.
The goal is to have as much managed resources functions as possible
before the 'clk_prepare_enable()' call in order to keep the error handling
path simple.
While at it, remove the now unneeded 'clk' variable.
Fixes:
|
||
---|---|---|
.. | ||
aspeed-vhub | ||
bdc | ||
amd5536udc.h | ||
amd5536udc_pci.c | ||
at91_udc.c | ||
at91_udc.h | ||
atmel_usba_udc.c | ||
atmel_usba_udc.h | ||
bcm63xx_udc.c | ||
core.c | ||
dummy_hcd.c | ||
fotg210-udc.c | ||
fotg210.h | ||
fsl_qe_udc.c | ||
fsl_qe_udc.h | ||
fsl_udc_core.c | ||
fsl_usb2_udc.h | ||
fusb300_udc.c | ||
fusb300_udc.h | ||
goku_udc.c | ||
goku_udc.h | ||
gr_udc.c | ||
gr_udc.h | ||
Kconfig | ||
lpc32xx_udc.c | ||
m66592-udc.c | ||
m66592-udc.h | ||
Makefile | ||
max3420_udc.c | ||
mv_u3d.h | ||
mv_u3d_core.c | ||
mv_udc.h | ||
mv_udc_core.c | ||
net2272.c | ||
net2272.h | ||
net2280.c | ||
net2280.h | ||
omap_udc.c | ||
omap_udc.h | ||
pch_udc.c | ||
pxa25x_udc.c | ||
pxa25x_udc.h | ||
pxa27x_udc.c | ||
pxa27x_udc.h | ||
r8a66597-udc.c | ||
r8a66597-udc.h | ||
renesas_usb3.c | ||
s3c-hsudc.c | ||
s3c2410_udc.c | ||
s3c2410_udc.h | ||
s3c2410_udc_regs.h | ||
snps_udc_core.c | ||
snps_udc_plat.c | ||
tegra-xudc.c | ||
trace.c | ||
trace.h | ||
udc-xilinx.c |