> -Original Message-
> From: Gerd Hoffmann [mailto:kra...@redhat.com]
> Sent: Monday, June 02, 2014 3:45 PM
> To: Gonglei (Arei)
> Cc: qemu-devel@nongnu.org; Luonengjun; Huangweidong (C); Huangpeng
> (Peter)
> Subject: Re: [PATCH 2/6] usb-ohci: add exit function
>
> Hi,
>
> > +static vo
Hi,
> +static void usb_ohci_exit(PCIDevice *dev)
> +{
> +OHCIPCIState *ohci = PCI_OHCI(dev);
> +OHCIState *s = &ohci->state;
> +
> +memory_region_destroy(&s->mem);
> +
> +if (!ohci->masterbus) {
> +usb_bus_release(&s->bus);
> +}
> +}
This is incomplete. At minimum y
From: Gonglei
clean up ohci resource when ohci pci device exit
Signed-off-by: Gonglei
---
hw/usb/hcd-ohci.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c
index cd87074..3add206 100644
--- a/hw/usb/hcd-ohci.c
+++ b/hw/usb/hcd-ohci.c
@@