usb: host: ehci: add ehci_unregister()
ehci_register() allocates data and registers a ehci host. Add
ehci_unregister() to properly halt the controller and to free the memory
again.. To do so, change ehci_register() to return the ehci host rather
than an error code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e44fddb commit e3eb0c729bc2e3dac0e0dfb0a04be40bfcffcf1c
@Sascha Hauer Sascha Hauer authored on 26 Oct 2018
Showing 4 changed files
View
drivers/usb/host/ehci-atmel.c
View
drivers/usb/host/ehci-hcd.c
View
drivers/usb/imx/chipidea-imx.c
View
include/usb/ehci.h