Commit af3e69cf authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

[MIPS] Declare some pci variables in header file

Declare pci_probe_only, etc. in asm-mips/pci.h file.  This will fix
some sparse warnings.
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8fa9cc16
...@@ -171,7 +171,6 @@ void i8259_init(void) ...@@ -171,7 +171,6 @@ void i8259_init(void)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{ {
extern int pci_probe_only;
pci_probe_only = 1; pci_probe_only = 1;
#ifdef CONFIG_ROCKHOPPER #ifdef CONFIG_ROCKHOPPER
......
...@@ -202,7 +202,6 @@ static int __init bcm1480_pcibios_init(void) ...@@ -202,7 +202,6 @@ static int __init bcm1480_pcibios_init(void)
{ {
uint32_t cmdreg; uint32_t cmdreg;
uint64_t reg; uint64_t reg;
extern int pci_probe_only;
/* CFE will assign PCI resources */ /* CFE will assign PCI resources */
pci_probe_only = 1; pci_probe_only = 1;
......
...@@ -47,7 +47,6 @@ int __cpuinit bridge_probe(nasid_t nasid, int widget_id, int masterwid) ...@@ -47,7 +47,6 @@ int __cpuinit bridge_probe(nasid_t nasid, int widget_id, int masterwid)
static int num_bridges = 0; static int num_bridges = 0;
bridge_t *bridge; bridge_t *bridge;
int slot; int slot;
extern int pci_probe_only;
pci_probe_only = 1; pci_probe_only = 1;
......
...@@ -210,7 +210,6 @@ static int __init sb1250_pcibios_init(void) ...@@ -210,7 +210,6 @@ static int __init sb1250_pcibios_init(void)
void __iomem *io_map_base; void __iomem *io_map_base;
uint32_t cmdreg; uint32_t cmdreg;
uint64_t reg; uint64_t reg;
extern int pci_probe_only;
/* CFE will assign PCI resources */ /* CFE will assign PCI resources */
pci_probe_only = 1; pci_probe_only = 1;
......
...@@ -172,4 +172,7 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) ...@@ -172,4 +172,7 @@ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
return channel ? 15 : 14; return channel ? 15 : 14;
} }
extern int pci_probe_only;
extern unsigned int pcibios_max_latency;
#endif /* _ASM_PCI_H */ #endif /* _ASM_PCI_H */
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