libpayload: EHCI - detach controller in ehci_shutdown()
It shouldn't be used any more as we're about to free() the memory behind the controller -- therefore detach it. Change-Id: I875322a9940570c51d412a7f3bfb6af4ea3b3764 Signed-off-by: Mathias Krause <minipli@googlemail.com> Reviewed-on: http://review.coreboot.org/2899 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.huber@secunet.com> Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
c15551ab08
commit
7a9da71c5f
|
@ -170,6 +170,7 @@ static int ehci_set_periodic_schedule(ehci_t *ehcic, int enable)
|
|||
|
||||
static void ehci_shutdown (hci_t *controller)
|
||||
{
|
||||
detach_controller(controller);
|
||||
/* Make sure periodic schedule is disabled */
|
||||
ehci_set_periodic_schedule(EHCI_INST(controller), 0);
|
||||
/* Free periodic frame list */
|
||||
|
|
Loading…
Reference in New Issue