PCI: Call platform_set_drvdata earlier in devm_pci_alloc_host_bridge
authorDaire McNamara <daire.mcnamara@microchip.com>
Mon, 25 Jan 2021 16:29:31 +0000 (16:29 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 20:00:11 +0000 (14:00 -0600)
commit791c9f143c77f847232b46ee9c1c990f60825c8e
treebdd93019ec526ce3c456d9d5adafd19da4abb8fb
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837
PCI: Call platform_set_drvdata earlier in devm_pci_alloc_host_bridge

Many drivers can now use pci_host_common_probe() directly.
Their hardware window setup can be moved from their 'custom' probe
functions to individual driver init functions.

Link: https://lore.kernel.org/r/20210125162934.5335-2-daire.mcnamara@microchip.com
Signed-off-by: Daire McNamara <daire.mcnamara@microchip.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
drivers/pci/controller/pci-host-common.c