PCI: host-generic: Support building as modules
Enable building host-generic and its host-common dependency as a module. Link: https://lore.kernel.org/r/20200409234923.21598-3-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Will Deacon <will@kernel.org> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Andrew Murray <amurray@thegoodpenguin.co.uk> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Will Deacon <will@kernel.org> Cc: linux-pci@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org
This commit is contained in:

committed by
Lorenzo Pieralisi

parent
0b104773b4
commit
0c59c06a7c
@@ -101,6 +101,7 @@ err_exit:
|
||||
pci_ecam_free(cfg);
|
||||
return ERR_PTR(err);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pci_ecam_create);
|
||||
|
||||
void pci_ecam_free(struct pci_config_window *cfg)
|
||||
{
|
||||
@@ -121,6 +122,7 @@ void pci_ecam_free(struct pci_config_window *cfg)
|
||||
release_resource(&cfg->res);
|
||||
kfree(cfg);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pci_ecam_free);
|
||||
|
||||
/*
|
||||
* Function to implement the pci_ops ->map_bus method
|
||||
@@ -143,6 +145,7 @@ void __iomem *pci_ecam_map_bus(struct pci_bus *bus, unsigned int devfn,
|
||||
base = cfg->win + (busn << cfg->ops->bus_shift);
|
||||
return base + (devfn << devfn_shift) + where;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pci_ecam_map_bus);
|
||||
|
||||
/* ECAM ops */
|
||||
const struct pci_ecam_ops pci_generic_ecam_ops = {
|
||||
@@ -153,6 +156,7 @@ const struct pci_ecam_ops pci_generic_ecam_ops = {
|
||||
.write = pci_generic_config_write,
|
||||
}
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(pci_generic_ecam_ops);
|
||||
|
||||
#if defined(CONFIG_ACPI) && defined(CONFIG_PCI_QUIRKS)
|
||||
/* ECAM ops for 32-bit access only (non-compliant) */
|
||||
|
Reference in New Issue
Block a user