/* Disable ROM decoding on a PCI device by turning off the last bit in the ROM BAR.  */
void pci_disable_rom(struct pci_dev *pdev)
/* Disable ROM decoding on a PCI device by turning off the last bit in the ROM BAR.  */
void pci_disable_rom(struct pci_dev *pdev)
{
	u32 rom_addr;
	pci_read_config_dword(pdev, pdev->rom_base_reg, &rom_addr);
	rom_addr &= ~PCI_ROM_ADDRESS_ENABLE;
	pci_write_config_dword(pdev, pdev->rom_base_reg, rom_addr);
}