diff options
author | Thippeswamy Havalige <thippeswamy.havalige@amd.com> | 2022-10-25 09:52:10 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2022-11-25 13:39:22 +0300 |
commit | 68c9858bf823514ead6cbff3f1d66a9998893af8 (patch) | |
tree | fb787c7862a1884713ec8195c59a2e44adbe264d /arch/microblaze | |
parent | d4a37561c8894a59a8546256425a757a27b01b3a (diff) | |
download | linux-68c9858bf823514ead6cbff3f1d66a9998893af8.tar.xz |
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: Thippeswamy Havalige <thippeswamy.havalige@amd.com>
Link: https://lore.kernel.org/r/20221025065214.4663-10-thippeswamy.havalige@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 085e673d388b..555281c389ff 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c @@ -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. */ |