usb: dwc3: of-simple: add a shutdown
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 29 Oct 2019 10:56:11 +0000 (12:56 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 29 Oct 2019 10:56:11 +0000 (12:56 +0200)
commit726b4fba94bec7e4c16bc681316e82455652c3a8
treeb9265674ee329a8e5818e75be82e452ea8709d9a
parent387c359b84f71ca29c1a9fa24293c65a257f6bf5
usb: dwc3: of-simple: add a shutdown

In case we're loading a new kernel via kexec, let's make sure to
cleanup the dwc3 address space correctly. This means that we should
run the same steps from driver remove, so just extract a reusable
function for both cases.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-of-simple.c