diff options
| author | 2022-09-08 13:59:00 +0800 | |
|---|---|---|
| committer | 2022-09-09 09:30:20 +0200 | |
| commit | 7eb2bf871454d3b35c2e988477aab4c0e12aa7c4 (patch) | |
| tree | 17577652ceed11129d7c1c3bb42ccfc4da4ceaf0 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | usb: gadget: uvc: increase worker prio to WQ_HIGHPRI (diff) | |
| download | linux-dev-7eb2bf871454d3b35c2e988477aab4c0e12aa7c4.tar.xz linux-dev-7eb2bf871454d3b35c2e988477aab4c0e12aa7c4.zip | |
usb: misc: usb3503: call clk_disable_unprepare in the error handling
Smatch reports the following warning:
drivers/usb/misc/usb3503.c:267 usb3503_probe() warn: 'hub->clk'
from clk_prepare_enable() not released on lines: 240,246,252
Fix this by adding a flag to indicate if hub->clk is prepared or not
and invoke clk_disable_unprepare in the error handling.
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20220908055903.3550723-1-dzm91@hust.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
