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> |
---|
|
drivers/usb/host/ehci-atmel.c |
---|
drivers/usb/host/ehci-hcd.c |
---|
drivers/usb/imx/chipidea-imx.c |
---|
include/usb/ehci.h |
---|