From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9soo-0000cw-Ow for barebox@lists.infradead.org; Wed, 23 Jul 2014 09:26:39 +0000 Received: by mail-wi0-f180.google.com with SMTP id n3so1840028wiv.13 for ; Wed, 23 Jul 2014 02:26:16 -0700 (PDT) From: Sebastian Hesselbarth Date: Wed, 23 Jul 2014 11:26:05 +0200 Message-Id: <1406107568-8440-4-git-send-email-sebastian.hesselbarth@gmail.com> In-Reply-To: <1406107568-8440-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <1406107568-8440-1-git-send-email-sebastian.hesselbarth@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH RESEND 3/6] pci: add host controller struct to sysdata To: Sebastian Hesselbarth , barebox@lists.infradead.org Cc: Thomas Petazzoni struct pci_bus allows to set some private sysdata. Assign the host controller struct to it by default. Signed-off-by: Sebastian Hesselbarth --- To: barebox@lists.infradead.org To: Sebastian Hesselbarth Cc: Antony Pavlov Cc: Jean-Christophe PLAGNIOL-VILLARD Cc: Thomas Petazzoni Cc: Ezequiel Garcia --- 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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox