The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device()
@ 2019-02-24 15:36 Dmitry Osipenko
  2019-02-25  2:27 ` Peter Chen
  0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Osipenko @ 2019-02-24 15:36 UTC (permalink / raw)
  To: Peter Chen, Greg Kroah-Hartman, Thierry Reding, Jonathan Hunter
  Cc: linux-usb, linux-tegra, linux-kernel

The ChipIdea's platform device need to be unregistered on Tegra's driver
module removal.

Fixes: dfebb5f43a78827a ("usb: chipidea: Add support for Tegra20/30/114/124")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 drivers/usb/chipidea/ci_hdrc_tegra.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/chipidea/ci_hdrc_tegra.c b/drivers/usb/chipidea/ci_hdrc_tegra.c
index 772851bee99b..12025358bb3c 100644
--- a/drivers/usb/chipidea/ci_hdrc_tegra.c
+++ b/drivers/usb/chipidea/ci_hdrc_tegra.c
@@ -130,6 +130,7 @@ static int tegra_udc_remove(struct platform_device *pdev)
 {
 	struct tegra_udc *udc = platform_get_drvdata(pdev);
 
+	ci_hdrc_remove_device(udc->dev);
 	usb_phy_set_suspend(udc->phy, 1);
 	clk_disable_unprepare(udc->clk);
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-02-26 15:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-24 15:36 [PATCH v1] usb: chipidea: tegra: Fix missed ci_hdrc_remove_device() Dmitry Osipenko
2019-02-25  2:27 ` Peter Chen
2019-02-25  5:07   ` Dmitry Osipenko
2019-02-26 10:56     ` Greg Kroah-Hartman
2019-02-26 14:33       ` Dmitry Osipenko
2019-02-26 14:58         ` Greg Kroah-Hartman
2019-02-26 15:08           ` Dmitry Osipenko
2019-02-26 15:21             ` Greg Kroah-Hartman
2019-02-26 15:40               ` Dmitry Osipenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox