/* Release selected PCI I/O and memory resources previously reserved. Call this function only after all use of the PCI regions has ceased.  */
void pci_release_selected_regions(struct pci_dev *pdev, int bars)
/* Release selected PCI I/O and memory resources previously reserved. Call this function only after all use of the PCI regions has ceased.  */
void pci_release_selected_regions(struct pci_dev *pdev, int bars)
{
	int i;
	for (i = 0; i < 6; i++)
		if (bars & (1 << i))
			pci_release_region(pdev, i);
}