Revert "PCI: ecam: Allow cfg->priv to be pre-populated from the root port device"

This reverts commit 4900454b4f.

Now that nobody relies of cfg->priv containing anything useful before the
.init() callback is used, restore the previous behaviour.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20250625111806.4153773-4-maz@kernel.org
This commit is contained in:
Marc Zyngier 2025-06-25 12:18:06 +01:00 committed by Bjorn Helgaas
parent bdb32a0f67
commit ba74278c63
1 changed files with 0 additions and 2 deletions

View File

@ -84,8 +84,6 @@ struct pci_config_window *pci_ecam_create(struct device *dev,
goto err_exit_iomap; goto err_exit_iomap;
} }
cfg->priv = dev_get_drvdata(dev);
if (ops->init) { if (ops->init) {
err = ops->init(cfg); err = ops->init(cfg);
if (err) if (err)