/* Remove a mapping of a previously mapped ROM  */
void pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom)
/* Remove a mapping of a previously mapped ROM  */
void pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom)
{
	struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
	if (res->flags & (IORESOURCE_ROM_COPY | IORESOURCE_ROM_BIOS_COPY))
		return;
	iounmap(rom);
	if (!(res->flags & (IORESOURCE_ROM_ENABLE | IORESOURCE_ROM_SHADOW)))
		pci_disable_rom(pdev);
}