diff options
author | Thippeswamy Havalige <thippeswamy.havalige@amd.com> | 2022-10-25 12:22:12 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2022-11-25 11:39:23 +0100 |
commit | cb0199c70ee1065c9c9f121e3508833f3ee11cd1 (patch) | |
tree | 64c46cc7834193894aabe34d12b30000870a9bb5 /arch/microblaze/pci/pci-common.c | |
parent | 3604ef61f18ae024b4bf2686361965469f9ff805 (diff) | |
download | lwn-cb0199c70ee1065c9c9f121e3508833f3ee11cd1.tar.gz lwn-cb0199c70ee1065c9c9f121e3508833f3ee11cd1.zip |
microblaze/PCI: Remove unused pci_iobar_pfn() and et al declarations
Remove unused pci_iobar_pfn() and et al declarations.
Signed-off-by: Thippeswamy Havalige <thippeswamy.havalige@amd.com>
Link: https://lore.kernel.org/r/20221025065214.4663-12-thippeswamy.havalige@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'arch/microblaze/pci/pci-common.c')
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index a1de8532a04e..e5c2051c7e67 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c @@ -65,25 +65,6 @@ int pcibios_vaddr_is_ioport(void __iomem *address) return ret; } -/* - * Platform support for /proc/bus/pci/X/Y mmap()s. - */ - -int pci_iobar_pfn(struct pci_dev *pdev, int bar, struct vm_area_struct *vma) -{ - struct pci_controller *hose = pci_bus_to_host(pdev->bus); - resource_size_t ioaddr = pci_resource_start(pdev, bar); - - if (!hose) - return -EINVAL; /* should never happen */ - - /* Convert to an offset within this PCI controller */ - ioaddr -= (unsigned long)hose->io_base_virt - _IO_BASE; - - vma->vm_pgoff += (ioaddr + hose->io_base_phys) >> PAGE_SHIFT; - return 0; -} - /* Display the domain number in /proc */ int pci_proc_domain(struct pci_bus *bus) { |