diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-10 07:49:16 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-05-13 12:12:17 -0400 |
commit | c23bfc3835173f5229b2503e3b616001a28affad (patch) | |
tree | 109f74ea29224587bead91289f55f2d30032b615 /arch/arm/mach-ks8695 | |
parent | daeb4c0c3bf2df72d0cd6e4330bad9e2e520552b (diff) |
ARM: PCI: provide a default bus scan implementation
Most PCI implementations perform simple root bus scanning. Rather than
having each group of platforms provide a duplicated bus scan function,
provide the PCI configuration ops structure via the hw_pci structure,
and call the root bus scanning function from core ARM PCI code.
Acked-by: Krzysztof HaĆasa <khc@pm.waw.pl>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ks8695')
-rw-r--r-- | arch/arm/mach-ks8695/pci.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-ks8695/pci.c b/arch/arm/mach-ks8695/pci.c index f2235e80171e..bb18193b4bac 100644 --- a/arch/arm/mach-ks8695/pci.c +++ b/arch/arm/mach-ks8695/pci.c | |||
@@ -141,12 +141,6 @@ static struct pci_ops ks8695_pci_ops = { | |||
141 | .write = ks8695_pci_writeconfig, | 141 | .write = ks8695_pci_writeconfig, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static struct pci_bus* __init ks8695_pci_scan_bus(int nr, struct pci_sys_data *sys) | ||
145 | { | ||
146 | return pci_scan_root_bus(NULL, sys->busnr, &ks8695_pci_ops, sys, | ||
147 | &sys->resources); | ||
148 | } | ||
149 | |||
150 | static struct resource pci_mem = { | 144 | static struct resource pci_mem = { |
151 | .name = "PCI Memory space", | 145 | .name = "PCI Memory space", |
152 | .start = KS8695_PCIMEM_PA, | 146 | .start = KS8695_PCIMEM_PA, |
@@ -302,9 +296,9 @@ static void ks8695_show_pciregs(void) | |||
302 | 296 | ||
303 | static struct hw_pci ks8695_pci __initdata = { | 297 | static struct hw_pci ks8695_pci __initdata = { |
304 | .nr_controllers = 1, | 298 | .nr_controllers = 1, |
299 | .ops = &ks8695_pci_ops, | ||
305 | .preinit = ks8695_pci_preinit, | 300 | .preinit = ks8695_pci_preinit, |
306 | .setup = ks8695_pci_setup, | 301 | .setup = ks8695_pci_setup, |
307 | .scan = ks8695_pci_scan_bus, | ||
308 | .postinit = NULL, | 302 | .postinit = NULL, |
309 | .map_irq = NULL, | 303 | .map_irq = NULL, |
310 | }; | 304 | }; |