Commit 68c9858b authored by Thippeswamy Havalige's avatar Thippeswamy Havalige Committed by Michal Simek

microblaze/PCI: Remove unused pci_address_to_pio() conversion of CPU address to I/O port

Remove unused pci_address_to_pio() conversion of CPU
address to I/O port function.
Signed-off-by: default avatarThippeswamy Havalige <thippeswamy.havalige@amd.com>
Link: https://lore.kernel.org/r/20221025065214.4663-10-thippeswamy.havalige@amd.comSigned-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent d4a37561
......@@ -68,29 +68,6 @@ int pcibios_vaddr_is_ioport(void __iomem *address)
return ret;
}
unsigned long pci_address_to_pio(phys_addr_t address)
{
struct pci_controller *hose;
resource_size_t size;
unsigned long ret = ~0;
spin_lock(&hose_spinlock);
list_for_each_entry(hose, &hose_list, list_node) {
size = pcibios_io_size(hose);
if (address >= hose->io_base_phys &&
address < (hose->io_base_phys + size)) {
unsigned long base =
(unsigned long)hose->io_base_virt - _IO_BASE;
ret = base + (address - hose->io_base_phys);
break;
}
}
spin_unlock(&hose_spinlock);
return ret;
}
EXPORT_SYMBOL_GPL(pci_address_to_pio);
/*
* Platform support for /proc/bus/pci/X/Y mmap()s.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment