diff options
| author | Rob Herring <[email protected]> | 2020-07-22 02:24:57 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2020-07-23 10:20:49 +0000 |
| commit | 6a589900d05091dfec6d9d1f35245a6578cccee6 (patch) | |
| tree | 6268b4cae54c79763af4128e996cd05d285a28d4 /drivers/pci/controller/pcie-mediatek.c | |
| parent | PCI: versatile: Drop flag PCI_ENABLE_PROC_DOMAINS (diff) | |
| download | kernel-6a589900d05091dfec6d9d1f35245a6578cccee6.tar.gz kernel-6a589900d05091dfec6d9d1f35245a6578cccee6.zip | |
PCI: Set default bridge parent device
The host bridge's parent device is always the platform device. As we
already have a pointer to it in the devres functions, let's initialize
the parent device. Drivers can still override the parent if desired.
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-mediatek.c')
| -rw-r--r-- | drivers/pci/controller/pcie-mediatek.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c index d8e38276dbe3..a9399b8d2e8b 100644 --- a/drivers/pci/controller/pcie-mediatek.c +++ b/drivers/pci/controller/pcie-mediatek.c @@ -1095,7 +1095,6 @@ static int mtk_pcie_probe(struct platform_device *pdev) return err; host->busnr = pcie->busnr; - host->dev.parent = pcie->dev; host->ops = pcie->soc->ops; host->map_irq = of_irq_parse_and_map_pci; host->swizzle_irq = pci_common_swizzle; |
