linux-stable/drivers/usb/musb
Dan Carpenter 4aa0500b9b usb: musb: mediatek: don't unregister something that wasn't registered
[ Upstream commit ba883de971 ]

This function only calls mtk_otg_switch_init() when the ->port_mode
is MUSB_OTG so the clean up code should only call mtk_otg_switch_exit()
for that mode.

Fixes: 0990366bab ("usb: musb: Add support for MediaTek musb controller")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/Y8/3TqpqiSr0RxFH@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:28:53 +01:00
..
Kconfig usb: musb: Drop old unused am35x glue layer 2022-11-29 08:56:09 +01:00
Makefile usb: musb: Drop old unused am35x glue layer 2022-11-29 08:56:09 +01:00
cppi_dma.h
da8xx.c usb: musb: da8xx: Switch to use dev_err_probe() helper 2022-09-27 10:36:06 +02:00
jz4740.c usb: musb: jz4740: Support the generic PHY framework 2022-11-09 12:39:13 +01:00
mediatek.c usb: musb: mediatek: don't unregister something that wasn't registered 2023-03-10 09:28:53 +01:00
mpfs.c usb: musb: mpfs: add missing clk_disable_unprepare() in mpfs_remove() 2022-06-29 21:02:05 +02:00
musb_core.c usb: musb: Allow running without CONFIG_USB_PHY 2022-11-09 12:39:13 +01:00
musb_core.h usb: musb: Allow running without CONFIG_USB_PHY 2022-11-09 12:39:13 +01:00
musb_cppi41.c usb: musb: cppi41: Switch to use dev_err_probe() helper 2022-09-27 10:36:06 +02:00
musb_debug.h
musb_debugfs.c usb: musb: Add and use inline functions musb_{get,set}_state 2022-11-09 12:39:12 +01:00
musb_dma.h usb: musb: remove left-over after USB_TI_CPPI_DMA removal 2022-11-09 12:37:34 +01:00
musb_dsps.c usb: musb: dsps: Use platform_get_irq_byname() to get the interrupt 2021-12-21 08:51:57 +01:00
musb_gadget.c usb: musb: remove extra check in musb_gadget_vbus_draw 2022-12-08 16:44:39 +01:00
musb_gadget.h
musb_gadget_ep0.c usb: musb: gadget: Use fallthrough pseudo-keyword 2020-10-10 12:32:29 +02:00
musb_host.c usb: musb: Support setting OTG mode using generic PHY 2022-11-09 12:39:13 +01:00
musb_host.h usb: musb: Remove duplicate declaration of functions 2021-05-10 16:20:41 +02:00
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h usb: musb: tracing: Use the new __vstring() helper 2022-07-19 11:20:24 -04:00
musb_virthub.c usb: musb: Allow running without CONFIG_USB_PHY 2022-11-09 12:39:13 +01:00
musbhsdma.c usb: musb: dma: Remove unused variable 2021-02-05 10:27:18 +01:00
omap2430.c usb: musb: fix error return code in omap2430_probe() 2023-01-17 17:05:58 +01:00
omap2430.h
sunxi.c usb: musb: sunxi: Switch to use dev_err_probe() helper 2022-09-27 10:36:07 +02:00
tusb6010.c usb/musb: fix repeated words in comments 2022-07-27 14:34:05 +02:00
tusb6010.h
tusb6010_omap.c
ux500.c usb: musb: Set the DT node on the child device 2021-12-17 17:00:45 +01:00
ux500_dma.c