usb: gadget: Fix Unbalanced pm_runtime_enable in tegra_xudc_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Fri, 18 Jun 2021 14:14:41 +0000 (22:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 12:35:44 +0000 (14:35 +0200)
commit7073acb51a3b4c8d74bf317cd6a860f57fac659b
treea1976014b1c99e96f853f74fb5033948e3ce801f
parent1bf7371b90046114d589c2328ae016886aa947db
usb: gadget: Fix Unbalanced pm_runtime_enable in tegra_xudc_probe

commit 5b01248156bd75303e66985c351dee648c149979 upstream.

Add missing pm_runtime_disable() when probe error out. It could
avoid pm_runtime implementation complains when removing and probing
again the driver.

Fixes: 49db427232fe ("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>
drivers/usb/gadget/udc/tegra-xudc.c