]> git.baikalelectronics.ru Git - kernel.git/commit
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, 21 Jul 2021 07:46:54 +0000 (09:46 +0200)
commitcb1a433f145e69f43c24108165470e0495efdb2f
tree0950986f5714bde9edecb7fc83e4f7a57ca4c048
parent76bcf6aa8324f72cc275a5d2c75dd0d7d8dcd639
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: b2ae21061727 ("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