Commit 47a5c976486e407fc0d0bc8fa165132b6f9bec26

Authored by Atsushi Nemoto
Committed by Ralf Baechle
1 parent 32d00d0f93

[MIPS] Introduce pcibios_plat_setup

Introduce pcibios_plat_setup for platform-specific pcibios_setup.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Showing 2 changed files with 7 additions and 1 deletions Side-by-side Diff

... ... @@ -328,8 +328,12 @@
328 328 EXPORT_SYMBOL(PCIBIOS_MIN_MEM);
329 329 #endif
330 330  
331   -char *pcibios_setup(char *str)
  331 +char * (*pcibios_plat_setup)(char *str) __devinitdata;
  332 +
  333 +char *__devinit pcibios_setup(char *str)
332 334 {
  335 + if (pcibios_plat_setup)
  336 + return pcibios_plat_setup(str);
333 337 return str;
334 338 }
include/asm-mips/pci.h
... ... @@ -174,5 +174,7 @@
174 174  
175 175 extern int pci_probe_only;
176 176  
  177 +extern char * (*pcibios_plat_setup)(char *str);
  178 +
177 179 #endif /* _ASM_PCI_H */