Commit cb993029 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] iSeries: Call iSeries_pcibios_init from setup_arch

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent e60516e3
...@@ -519,9 +519,6 @@ static int __init pcibios_init(void) ...@@ -519,9 +519,6 @@ static int __init pcibios_init(void)
*/ */
ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot; ppc_md.phys_mem_access_prot = pci_phys_mem_access_prot;
if (firmware_has_feature(FW_FEATURE_ISERIES))
iSeries_pcibios_init();
printk(KERN_DEBUG "PCI: Probing PCI hardware\n"); printk(KERN_DEBUG "PCI: Probing PCI hardware\n");
/* Scan all of the recorded PCI controllers. */ /* Scan all of the recorded PCI controllers. */
......
...@@ -50,9 +50,11 @@ struct pci_dev; /* For Forward Reference */ ...@@ -50,9 +50,11 @@ struct pci_dev; /* For Forward Reference */
extern void iSeries_Device_Information(struct pci_dev *PciDev, int count, extern void iSeries_Device_Information(struct pci_dev *PciDev, int count,
u16 bus, HvSubBusNumber subbus); u16 bus, HvSubBusNumber subbus);
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
extern void iSeries_pcibios_init(void);
extern void iSeries_pci_final_fixup(void); extern void iSeries_pci_final_fixup(void);
#else #else
static void iSeries_pci_final_fixup(void) { } static inline void iSeries_pcibios_init(void) { }
static inline void iSeries_pci_final_fixup(void) { }
#endif #endif
#endif /* _PLATFORMS_ISERIES_PCI_H */ #endif /* _PLATFORMS_ISERIES_PCI_H */
...@@ -495,6 +495,8 @@ static void __init iSeries_setup_arch(void) ...@@ -495,6 +495,8 @@ static void __init iSeries_setup_arch(void)
itVpdAreas.xSlicMaxLogicalProcs); itVpdAreas.xSlicMaxLogicalProcs);
printk("Max physical processors = %d\n", printk("Max physical processors = %d\n",
itVpdAreas.xSlicMaxPhysicalProcs); itVpdAreas.xSlicMaxPhysicalProcs);
iSeries_pcibios_init();
} }
static void iSeries_show_cpuinfo(struct seq_file *m) static void iSeries_show_cpuinfo(struct seq_file *m)
......
...@@ -46,9 +46,6 @@ extern void init_pci_config_tokens (void); ...@@ -46,9 +46,6 @@ extern void init_pci_config_tokens (void);
extern unsigned long get_phb_buid (struct device_node *); extern unsigned long get_phb_buid (struct device_node *);
extern int rtas_setup_phb(struct pci_controller *phb); extern int rtas_setup_phb(struct pci_controller *phb);
/* From iSeries PCI */
extern void iSeries_pcibios_init(void);
extern unsigned long pci_probe_only; extern unsigned long pci_probe_only;
/* ---- EEH internal-use-only related routines ---- */ /* ---- EEH internal-use-only related routines ---- */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment