From: Wolfgang Denk Date: Sun, 09 Jan 2011 21:01:03 +0100 Subject: [U-Boot] [PATCH v2] powerpc/fsl-pci: Determine pci_controller based on cfg addr for dts fixup In-Reply-To: <1294183251-4905-1-git-send-email-galak@kernel.crashing.org> References: <1294183251-4905-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20110109200103.E2155150A44@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1294183251-4905-1-git-send-email-galak@kernel.crashing.org> you wrote: > Previously we passed in a specifically named struct pci_controller to > determine if we had setup the particular PCI bus. Now we can search for > the struct so we dont have to depend on the name or the struct being > statically allocated. > > Introduced new find_hose_by_cfg_addr() to get back a pci_controller struct > back by searching for it means we can do things like dynamically allocate > them or not have to expose the static structures to all users. > > Signed-off-by: Kumar Gala > --- > * Merged with find_hose_by_cfg_addr patch > * Fixed find_hose_by_cfg_addr to have { } for multiline for > > arch/powerpc/include/asm/fsl_pci.h | 43 ++--------------------------------- > drivers/pci/fsl_pci_init.c | 5 +++- > drivers/pci/pci.c | 12 ++++++++++ > include/pci.h | 1 + > 4 files changed, 20 insertions(+), 41 deletions(-) Acked-by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I have a theory that it's impossible to prove anything, but I can't prove it.