diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-06-04 19:59:16 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-06-04 19:59:16 +0200 |
commit | d388e541e2e3e26adfd9b1c99144176a73e19f95 (patch) | |
tree | 05b6e3b71ec742b52896c3ce6d87469b8aad7a15 /drivers/pci/controller/pcie-tango.c | |
parent | Merge branch 'remotes/lorenzo/pci/endpoint' (diff) | |
parent | PCI: host-generic: Eliminate pci_host_common_probe wrappers (diff) | |
download | linux-d388e541e2e3e26adfd9b1c99144176a73e19f95.tar.xz linux-d388e541e2e3e26adfd9b1c99144176a73e19f95.zip |
Merge branch 'remotes/lorenzo/pci/host-generic'
- Constify struct pci_ecam_ops (Rob Herring)
- Support building as modules (Rob Herring)
- Eliminate wrappers for pci_host_common_probe() by using DT match table
data (Rob Herring)
* remotes/lorenzo/pci/host-generic:
PCI: host-generic: Eliminate pci_host_common_probe wrappers
PCI: host-generic: Support building as modules
PCI: Constify struct pci_ecam_ops
# Conflicts:
# drivers/pci/controller/dwc/pcie-hisi.c
Diffstat (limited to 'drivers/pci/controller/pcie-tango.c')
-rw-r--r-- | drivers/pci/controller/pcie-tango.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/pci/controller/pcie-tango.c b/drivers/pci/controller/pcie-tango.c index 18c2c4313eb5..8f640c70f936 100644 --- a/drivers/pci/controller/pcie-tango.c +++ b/drivers/pci/controller/pcie-tango.c @@ -207,7 +207,7 @@ static int smp8759_config_write(struct pci_bus *bus, unsigned int devfn, return ret; } -static struct pci_ecam_ops smp8759_ecam_ops = { +static const struct pci_ecam_ops smp8759_ecam_ops = { .bus_shift = 20, .pci_ops = { .map_bus = pci_ecam_map_bus, @@ -295,11 +295,14 @@ static int tango_pcie_probe(struct platform_device *pdev) spin_lock_init(&pcie->used_msi_lock); irq_set_chained_handler_and_data(virq, tango_msi_isr, pcie); - return pci_host_common_probe(pdev, &smp8759_ecam_ops); + return pci_host_common_probe(pdev); } static const struct of_device_id tango_pcie_ids[] = { - { .compatible = "sigma,smp8759-pcie" }, + { + .compatible = "sigma,smp8759-pcie", + .data = &smp8759_ecam_ops, + }, { }, }; |