aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pcie-xilinx.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2020-07-22 02:24:58 +0000
committerLorenzo Pieralisi <[email protected]>2020-07-23 10:20:50 +0000
commitd3bb94d06aae0f47d492f2999d024d58ce1baea9 (patch)
treed1d9d2ae702ecf4d00c643375130cf77d3cce103 /drivers/pci/controller/pcie-xilinx.c
parentPCI: Set default bridge parent device (diff)
downloadkernel-d3bb94d06aae0f47d492f2999d024d58ce1baea9.tar.gz
kernel-d3bb94d06aae0f47d492f2999d024d58ce1baea9.zip
PCI: Drop unnecessary zeroing of bridge fields
The struct pci_host_bridge is 0 initialized when allocated, so there's no need to explicitly set fields to 0. 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-xilinx.c')
-rw-r--r--drivers/pci/controller/pcie-xilinx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-xilinx.c b/drivers/pci/controller/pcie-xilinx.c
index 7c0f3268fc5c..cce67cb8fb2b 100644
--- a/drivers/pci/controller/pcie-xilinx.c
+++ b/drivers/pci/controller/pcie-xilinx.c
@@ -652,7 +652,6 @@ static int xilinx_pcie_probe(struct platform_device *pdev)
}
bridge->sysdata = port;
- bridge->busnr = 0;
bridge->ops = &xilinx_pcie_ops;
bridge->map_irq = of_irq_parse_and_map_pci;
bridge->swizzle_irq = pci_common_swizzle;