All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] usb: gadget: Fix Unbalanced pm_runtime_enable in tegra_xudc_probe
@ 2021-06-18 14:14 Zhang Qilong
  0 siblings, 0 replies; only message in thread
From: Zhang Qilong @ 2021-06-18 14:14 UTC (permalink / raw)
  To: balbi, gregkh, thierry.reding, jonathanh, christophe.jaillet,
	rikard.falkeborn, gustavoars, chunfeng.yun
  Cc: linux-usb, linux-tegra

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

Fixes:49db427232fe2 ("usb: gadget: Add UDC driver for tegra XUSB device mode controller")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
---
 drivers/usb/gadget/udc/tegra-xudc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c
index a54d1cef17db..c0ca7144e512 100644
--- a/drivers/usb/gadget/udc/tegra-xudc.c
+++ b/drivers/usb/gadget/udc/tegra-xudc.c
@@ -3853,6 +3853,7 @@ static int tegra_xudc_probe(struct platform_device *pdev)
 	return 0;
 
 free_eps:
+	pm_runtime_disable(&pdev->dev);
 	tegra_xudc_free_eps(xudc);
 free_event_ring:
 	tegra_xudc_free_event_ring(xudc);
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-18 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 14:14 [PATCH -next] usb: gadget: Fix Unbalanced pm_runtime_enable in tegra_xudc_probe Zhang Qilong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.