]> git.dujemihanovic.xyz Git - u-boot.git/commit
powerpc/fsl-pci: Determine pci_controller based on cfg addr for dts fixup
authorKumar Gala <galak@kernel.crashing.org>
Fri, 17 Dec 2010 11:57:25 +0000 (05:57 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 14 Jan 2011 07:32:19 +0000 (01:32 -0600)
commit3a0e3c27a50e395a59497e8bd60a00404e662eb1
treea7cfbf3012adf21a4009a96180ca903e606b86bb
parent45a68135c12bf7d534f3ce25bef493e16d32cedb
powerpc/fsl-pci: Determine pci_controller based on cfg addr for dts fixup

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 <galak@kernel.crashing.org>
Acked-by: Wolfgang Denk <wd@denx.de>
arch/powerpc/include/asm/fsl_pci.h
drivers/pci/fsl_pci_init.c
drivers/pci/pci.c
include/pci.h