Skip to content

Commit

Permalink
PCI: pci-bridge-emul: Export API functions
Browse files Browse the repository at this point in the history
It allows kernel modules which are not compiled into kernel image to use
pci-bridge-emul API functions.

Link: https://lore.kernel.org/r/20200907111038.5811-4-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
  • Loading branch information
Pali Rohár authored and Lorenzo Pieralisi committed Sep 7, 2020
1 parent 7862a61 commit d39ff8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/pci/pci-bridge-emul.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ int pci_bridge_emul_init(struct pci_bridge_emul *bridge,

return 0;
}
EXPORT_SYMBOL_GPL(pci_bridge_emul_init);

/*
* Cleanup a pci_bridge_emul structure that was previously initialized
Expand All @@ -305,6 +306,7 @@ void pci_bridge_emul_cleanup(struct pci_bridge_emul *bridge)
kfree(bridge->pcie_cap_regs_behavior);
kfree(bridge->pci_regs_behavior);
}
EXPORT_SYMBOL_GPL(pci_bridge_emul_cleanup);

/*
* Should be called by the PCI controller driver when reading the PCI
Expand Down Expand Up @@ -366,6 +368,7 @@ int pci_bridge_emul_conf_read(struct pci_bridge_emul *bridge, int where,

return PCIBIOS_SUCCESSFUL;
}
EXPORT_SYMBOL_GPL(pci_bridge_emul_conf_read);

/*
* Should be called by the PCI controller driver when writing the PCI
Expand Down Expand Up @@ -430,3 +433,4 @@ int pci_bridge_emul_conf_write(struct pci_bridge_emul *bridge, int where,

return PCIBIOS_SUCCESSFUL;
}
EXPORT_SYMBOL_GPL(pci_bridge_emul_conf_write);

0 comments on commit d39ff8e

Please sign in to comment.