diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-12-06 10:00:45 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-10 21:42:32 -0500 |
commit | cb993029094ed61f286793819d3aaa1deea5b252 (patch) | |
tree | 9beeecd334054899a05632a4c800f1056a5e01a4 | |
parent | e60516e3d0bbde450acf4397b0d01b03042a7d57 (diff) |
[POWERPC] iSeries: Call iSeries_pcibios_init from setup_arch
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/pci.h | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/setup.c | 2 | ||||
-rw-r--r-- | include/asm-powerpc/ppc-pci.h | 3 |
4 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 9f63bdcb0bdf..69364f3dc5c6 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -519,9 +519,6 @@ static int __init pcibios_init(void) | |||
519 | */ | 519 | */ |
520 | ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot; | 520 | ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot; |
521 | 521 | ||
522 | if (firmware_has_feature(FW_FEATURE_ISERIES)) | ||
523 | iSeries_pcibios_init(); | ||
524 | |||
525 | printk(KERN_DEBUG "PCI: Probing PCI hardware\n"); | 522 | printk(KERN_DEBUG "PCI: Probing PCI hardware\n"); |
526 | 523 | ||
527 | /* Scan all of the recorded PCI controllers. */ | 524 | /* Scan all of the recorded PCI controllers. */ |
diff --git a/arch/powerpc/platforms/iseries/pci.h b/arch/powerpc/platforms/iseries/pci.h index 3af9cf1c1d04..b14287342129 100644 --- a/arch/powerpc/platforms/iseries/pci.h +++ b/arch/powerpc/platforms/iseries/pci.h | |||
@@ -50,9 +50,11 @@ struct pci_dev; /* For Forward Reference */ | |||
50 | extern void iSeries_Device_Information(struct pci_dev *PciDev, int count, | 50 | extern void iSeries_Device_Information(struct pci_dev *PciDev, int count, |
51 | u16 bus, HvSubBusNumber subbus); | 51 | u16 bus, HvSubBusNumber subbus); |
52 | #ifdef CONFIG_PCI | 52 | #ifdef CONFIG_PCI |
53 | extern void iSeries_pcibios_init(void); | ||
53 | extern void iSeries_pci_final_fixup(void); | 54 | extern void iSeries_pci_final_fixup(void); |
54 | #else | 55 | #else |
55 | static void iSeries_pci_final_fixup(void) { } | 56 | static inline void iSeries_pcibios_init(void) { } |
57 | static inline void iSeries_pci_final_fixup(void) { } | ||
56 | #endif | 58 | #endif |
57 | 59 | ||
58 | #endif /* _PLATFORMS_ISERIES_PCI_H */ | 60 | #endif /* _PLATFORMS_ISERIES_PCI_H */ |
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c index 2175a71800d5..5616219a20d5 100644 --- a/arch/powerpc/platforms/iseries/setup.c +++ b/arch/powerpc/platforms/iseries/setup.c | |||
@@ -495,6 +495,8 @@ static void __init iSeries_setup_arch(void) | |||
495 | itVpdAreas.xSlicMaxLogicalProcs); | 495 | itVpdAreas.xSlicMaxLogicalProcs); |
496 | printk("Max physical processors = %d\n", | 496 | printk("Max physical processors = %d\n", |
497 | itVpdAreas.xSlicMaxPhysicalProcs); | 497 | itVpdAreas.xSlicMaxPhysicalProcs); |
498 | |||
499 | iSeries_pcibios_init(); | ||
498 | } | 500 | } |
499 | 501 | ||
500 | static void iSeries_show_cpuinfo(struct seq_file *m) | 502 | static void iSeries_show_cpuinfo(struct seq_file *m) |
diff --git a/include/asm-powerpc/ppc-pci.h b/include/asm-powerpc/ppc-pci.h index fda5e3d1f62a..854ab713f56c 100644 --- a/include/asm-powerpc/ppc-pci.h +++ b/include/asm-powerpc/ppc-pci.h | |||
@@ -46,9 +46,6 @@ extern void init_pci_config_tokens (void); | |||
46 | extern unsigned long get_phb_buid (struct device_node *); | 46 | extern unsigned long get_phb_buid (struct device_node *); |
47 | extern int rtas_setup_phb(struct pci_controller *phb); | 47 | extern int rtas_setup_phb(struct pci_controller *phb); |
48 | 48 | ||
49 | /* From iSeries PCI */ | ||
50 | extern void iSeries_pcibios_init(void); | ||
51 | |||
52 | extern unsigned long pci_probe_only; | 49 | extern unsigned long pci_probe_only; |
53 | 50 | ||
54 | /* ---- EEH internal-use-only related routines ---- */ | 51 | /* ---- EEH internal-use-only related routines ---- */ |