mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-23 13:05:21 +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:
|
||
|---|---|---|
| .. | ||
| bdc_cmd.c | ||
| bdc_cmd.h | ||
| bdc_core.c | ||
| bdc_dbg.c | ||
| bdc_dbg.h | ||
| bdc_ep.c | ||
| bdc_ep.h | ||
| bdc_udc.c | ||
| bdc.h | ||
| Kconfig | ||
| Makefile | ||