[PATCH RESEND 3/6] pci: add host controller struct to sysdata
Sebastian Hesselbarth
sebastian.hesselbarth at gmail.com
Wed Jul 23 02:26:05 PDT 2014
struct pci_bus allows to set some private sysdata. Assign the host
controller struct to it by default.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
---
To: barebox at lists.infradead.org
To: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
Cc: Antony Pavlov <antonynpavlov at gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Cc: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
---
drivers/pci/pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index e5cd8a33b2be..b30cdd96f8ca 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -39,6 +39,7 @@ void register_pci_controller(struct pci_controller *hose)
bus->ops = hose->pci_ops;
bus->resource[0] = hose->mem_resource;
bus->resource[1] = hose->io_resource;
+ bus->sysdata = hose;
pci_scan_bus(bus);
--
2.0.0
More information about the barebox
mailing list