/* Store this function in the HCD's struct pci_driver as remove().  */
void usb_hcd_pci_remove(struct pci_dev *dev)
/* Store this function in the HCD's struct pci_driver as remove().  */
void usb_hcd_pci_remove(struct pci_dev *dev)
{
	struct usb_hcd		*hcd;
	hcd = pci_get_drvdata(dev);
	if (!hcd)
		return;
	usb_remove_hcd(hcd);
	if (hcd->driver->flags & HCD_MEMORY) {
		iounmap(hcd->regs);
		release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
	} else {
		release_region(hcd->rsrc_start, hcd->rsrc_len);
	}
	usb_put_hcd(hcd);
	pci_disable_device(dev);
}