usb_dwc3: shutdown the DART as well when shutting down usb

Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
Sven Peter 2021-06-09 21:02:59 +02:00 committed by Hector Martin
parent 88275b5cb5
commit 9e061c2b50

View file

@ -1265,6 +1265,9 @@ void usb_dwc3_shutdown(dwc3_dev_t *dev)
ringbuffer_free(dev->pipe[i].device2host);
ringbuffer_free(dev->pipe[i].host2device);
}
if (dev->dart)
dart_shutdown(dev->dart);
free(dev);
}