common: Don't attempt to stop the USB clock in USB_VcomDeinit().
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 8 Jul 2019 19:00:56 +0000 (21:00 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
We don't implement that functionality yet.

src/common/virtual_com.c

index 370767898a4c275b16c8ad9f57fd701a37e3f39f..aa25cd78590424c7d567414888c855fd3aa9d2c4 100644 (file)
@@ -665,20 +665,8 @@ void USB_VcomDeinit(usb_device_handle deviceHandle)
     USB_DeviceStop(deviceHandle);
     USB_DeviceDeinit(deviceHandle);
     s_cdcVcom.deviceHandle = NULL;
-#if defined(USB_DEVICE_CONFIG_EHCI) && (USB_DEVICE_CONFIG_EHCI > 0)
-    USB_EhciPhyDeinit(CONTROLLER_ID);
-#endif
-#if defined(USB_DEVICE_CONFIG_KHCI) && (USB_DEVICE_CONFIG_KHCI > 0)
-    CLOCK_DisableUsbfs0Clock();
-#endif
-#if defined(USB_DEVICE_CONFIG_LPCIP3511FS) && (USB_DEVICE_CONFIG_LPCIP3511FS > 0U)
-    /* enable USB IP clock, user code. */
-    CLOCK_DisableClock(kCLOCK_Usbd0);
-#endif /* USB_DEVICE_CONFIG_LPCIP3511FS */
-
-#if defined(USB_DEVICE_CONFIG_LPCIP3511HS) && (USB_DEVICE_CONFIG_LPCIP3511HS > 0U)
-/* enable USB IP clock,user code. */
-#endif /* USB_DEVICE_CONFIG_LPCIP3511HS */
+
+       /* XXX: We are not stopping the USBOTG clock yet. */
 }
 
 void