Skip to content

Commit ba74278

Browse files
Marc Zyngierbjorn-helgaas
authored andcommitted
Revert "PCI: ecam: Allow cfg->priv to be pre-populated from the root port device"
This reverts commit 4900454. 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 <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent bdb32a0 commit ba74278

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pci/ecam.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ struct pci_config_window *pci_ecam_create(struct device *dev,
8484
goto err_exit_iomap;
8585
}
8686

87-
cfg->priv = dev_get_drvdata(dev);
88-
8987
if (ops->init) {
9088
err = ops->init(cfg);
9189
if (err)

0 commit comments

Comments
 (0)