mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
usb: gadget: Fix Unbalanced pm_runtime_enable in tegra_xudc_probe
Add missing pm_runtime_disable() when probe error out. It could
avoid pm_runtime implementation complains when removing and probing
again the driver.
Fixes: 49db427232
("usb: gadget: Add UDC driver for tegra XUSB device mode controller")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20210618141441.107817-1-zhangqilong3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a6b125621c
commit
5b01248156
1 changed files with 1 additions and 0 deletions
|
@ -3853,6 +3853,7 @@ static int tegra_xudc_probe(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
free_eps:
|
free_eps:
|
||||||
|
pm_runtime_disable(&pdev->dev);
|
||||||
tegra_xudc_free_eps(xudc);
|
tegra_xudc_free_eps(xudc);
|
||||||
free_event_ring:
|
free_event_ring:
|
||||||
tegra_xudc_free_event_ring(xudc);
|
tegra_xudc_free_event_ring(xudc);
|
||||||
|
|
Loading…
Reference in a new issue