diff options
| author | Rob Herring <[email protected]> | 2020-07-22 02:25:14 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2020-08-04 15:36:30 +0000 |
| commit | b64aa11eb2ddb0600361178286d7b7ed5a069fd8 (patch) | |
| tree | ef74f2cd8ed8bbecf598e1c6d362fbf0610a9f3e /drivers/pci/controller/pcie-iproc-platform.c | |
| parent | PCI: Move DT resource setup into devm_pci_alloc_host_bridge() (diff) | |
| download | kernel-b64aa11eb2ddb0600361178286d7b7ed5a069fd8.tar.gz kernel-b64aa11eb2ddb0600361178286d7b7ed5a069fd8.zip | |
PCI: Set bridge map_irq and swizzle_irq to default functions
The majority of DT based host drivers use the default .map_irq() and
.swizzle_irq() functions, so let's initialize the function pointers to
the default and drop setting them in the host drivers.
Drivers like iProc which don't support legacy interrupts need to set
.map_irq() back to NULL.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pcie-iproc-platform.c')
| -rw-r--r-- | drivers/pci/controller/pcie-iproc-platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-iproc-platform.c b/drivers/pci/controller/pcie-iproc-platform.c index 7c10c1cb6f65..a956b0c18bd1 100644 --- a/drivers/pci/controller/pcie-iproc-platform.c +++ b/drivers/pci/controller/pcie-iproc-platform.c @@ -99,9 +99,10 @@ static int iproc_pcie_pltfm_probe(struct platform_device *pdev) switch (pcie->type) { case IPROC_PCIE_PAXC: case IPROC_PCIE_PAXC_V2: + pcie->map_irq = 0; break; default: - pcie->map_irq = of_irq_parse_and_map_pci; + break; } ret = iproc_pcie_setup(pcie, &bridge->windows); |
