]> Git Repo - linux.git/commitdiff
PCI: xilinx-cpm: Remove leftover bridge initialization
authorLorenzo Pieralisi <[email protected]>
Fri, 4 Sep 2020 14:27:10 +0000 (15:27 +0100)
committerLorenzo Pieralisi <[email protected]>
Mon, 7 Sep 2020 09:53:49 +0000 (10:53 +0100)
Some fields in the host bridge structure are now initialized
by default in the PCI/OF core functions therefore their
initialization in the host controller driver is superfluous.

Remove it.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Cc: Rob Herring <[email protected]>
drivers/pci/controller/pcie-xilinx-cpm.c

index f3082de44e8a8f2e6bdf6190b04e4d612f8244ac..f92e0152e65e30f229e33607dce8468c438b29eb 100644 (file)
@@ -572,12 +572,8 @@ static int xilinx_cpm_pcie_probe(struct platform_device *pdev)
                goto err_setup_irq;
        }
 
-       bridge->dev.parent = dev;
        bridge->sysdata = port->cfg;
-       bridge->busnr = port->cfg->busr.start;
        bridge->ops = (struct pci_ops *)&pci_generic_ecam_ops.pci_ops;
-       bridge->map_irq = of_irq_parse_and_map_pci;
-       bridge->swizzle_irq = pci_common_swizzle;
 
        err = pci_host_probe(bridge);
        if (err < 0)
This page took 0.056739 seconds and 4 git commands to generate.