]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: Export pci_remap_iospace() and pci_unmap_iospace()
authorBrian Norris <briannorris@chromium.org>
Fri, 10 Mar 2017 02:46:16 +0000 (18:46 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Apr 2017 15:57:29 +0000 (10:57 -0500)
These are useful for PCIe host drivers, and those drivers can be modules.

[bhelgaas: don't remove __weak; it's removed elsewhere]
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/pci/pci.c

index 7904d02ffdb97e5f23d915e9c83edbf599ddf58b..c87d1edf02038fabc5709fab55eae457906b21db 100644 (file)
@@ -3383,6 +3383,7 @@ int __weak pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
        return -ENODEV;
 #endif
 }
+EXPORT_SYMBOL(pci_remap_iospace);
 
 /**
  *     pci_unmap_iospace - Unmap the memory mapped I/O space
@@ -3400,6 +3401,7 @@ void pci_unmap_iospace(struct resource *res)
        unmap_kernel_range(vaddr, resource_size(res));
 #endif
 }
+EXPORT_SYMBOL(pci_unmap_iospace);
 
 static void __pci_set_master(struct pci_dev *dev, bool enable)
 {