aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pcie-iproc.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2020-07-22 02:25:14 +0000
committerLorenzo Pieralisi <[email protected]>2020-08-04 15:36:30 +0000
commitb64aa11eb2ddb0600361178286d7b7ed5a069fd8 (patch)
treeef74f2cd8ed8bbecf598e1c6d362fbf0610a9f3e /drivers/pci/controller/pcie-iproc.c
parentPCI: Move DT resource setup into devm_pci_alloc_host_bridge() (diff)
downloadkernel-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.c')
-rw-r--r--drivers/pci/controller/pcie-iproc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c
index e98dafd0fff4..905e93808243 100644
--- a/drivers/pci/controller/pcie-iproc.c
+++ b/drivers/pci/controller/pcie-iproc.c
@@ -1526,7 +1526,6 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
host->ops = &iproc_pcie_ops;
host->sysdata = pcie;
host->map_irq = pcie->map_irq;
- host->swizzle_irq = pci_common_swizzle;
ret = pci_host_probe(host);
if (ret < 0) {