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/20200722022514.1283916-4-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
6a589900d0
commit
d3bb94d06a
|
@ -1184,7 +1184,6 @@ static int advk_pcie_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
bridge->sysdata = pcie;
|
||||
bridge->busnr = 0;
|
||||
bridge->ops = &advk_pcie_ops;
|
||||
bridge->map_irq = of_irq_parse_and_map_pci;
|
||||
bridge->swizzle_irq = pci_common_swizzle;
|
||||
|
|
|
@ -437,8 +437,6 @@ static int faraday_pci_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
|
||||
host->ops = &faraday_pci_ops;
|
||||
host->busnr = 0;
|
||||
host->msi = NULL;
|
||||
host->map_irq = of_irq_parse_and_map_pci;
|
||||
host->swizzle_irq = pci_common_swizzle;
|
||||
p = pci_host_bridge_priv(host);
|
||||
|
|
|
@ -1117,7 +1117,6 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
|
|||
pcie->nports = i;
|
||||
|
||||
bridge->sysdata = pcie;
|
||||
bridge->busnr = 0;
|
||||
bridge->ops = &mvebu_pcie_ops;
|
||||
bridge->map_irq = of_irq_parse_and_map_pci;
|
||||
bridge->swizzle_irq = pci_common_swizzle;
|
||||
|
|
|
@ -724,8 +724,6 @@ static int v3_pci_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
|
||||
host->ops = &v3_pci_ops;
|
||||
host->busnr = 0;
|
||||
host->msi = NULL;
|
||||
host->map_irq = of_irq_parse_and_map_pci;
|
||||
host->swizzle_irq = pci_common_swizzle;
|
||||
v3 = pci_host_bridge_priv(host);
|
||||
|
|
|
@ -153,8 +153,6 @@ static int versatile_pci_probe(struct platform_device *pdev)
|
|||
|
||||
pci_add_flags(PCI_REASSIGN_ALL_BUS);
|
||||
|
||||
bridge->sysdata = NULL;
|
||||
bridge->busnr = 0;
|
||||
bridge->ops = &pci_versatile_ops;
|
||||
bridge->map_irq = of_irq_parse_and_map_pci;
|
||||
bridge->swizzle_irq = pci_common_swizzle;
|
||||
|
|
|
@ -624,7 +624,6 @@ static int xgene_pcie_probe(struct platform_device *pdev)
|
|||
return ret;
|
||||
|
||||
bridge->sysdata = port;
|
||||
bridge->busnr = 0;
|
||||
bridge->ops = &xgene_pcie_ops;
|
||||
bridge->map_irq = of_irq_parse_and_map_pci;
|
||||
bridge->swizzle_irq = pci_common_swizzle;
|
||||
|
|
|
@ -994,7 +994,6 @@ static int brcm_pcie_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
bridge->busnr = 0;
|
||||
bridge->ops = &brcm_pcie_ops;
|
||||
bridge->sysdata = pcie;
|
||||
bridge->map_irq = of_irq_parse_and_map_pci;
|
||||
|
|
|
@ -1523,7 +1523,6 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res)
|
|||
if (iproc_pcie_msi_enable(pcie))
|
||||
dev_info(dev, "not using iProc MSI\n");
|
||||
|
||||
host->busnr = 0;
|
||||
host->ops = &iproc_pcie_ops;
|
||||
host->sysdata = pcie;
|
||||
host->map_irq = pcie->map_irq;
|
||||
|
|
|
@ -1008,7 +1008,6 @@ static int rockchip_pcie_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
bridge->sysdata = rockchip;
|
||||
bridge->busnr = 0;
|
||||
bridge->ops = &rockchip_pcie_ops;
|
||||
bridge->map_irq = of_irq_parse_and_map_pci;
|
||||
bridge->swizzle_irq = pci_common_swizzle;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue