فهرست منبع

sh: Fix up PCI section mismatch warnings.

Flag pcibios_setup() and pcibios_fixup_bus() as __devinit.
Follows the sh64 change.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 18 سال پیش
والد
کامیت
bd5f0d1c25
4فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      arch/sh/boards/mpc1211/pci.c
  2. 1 1
      arch/sh/drivers/pci/ops-sh4.c
  3. 1 1
      arch/sh/drivers/pci/pci-st40.c
  4. 1 1
      arch/sh/drivers/pci/pci.c

+ 1 - 1
arch/sh/boards/mpc1211/pci.c

@@ -187,7 +187,7 @@ char * __devinit pcibios_setup(char *str)
  *  are examined.
  *  are examined.
  */
  */
 
 
-void __init pcibios_fixup_bus(struct pci_bus *b)
+void __devinit pcibios_fixup_bus(struct pci_bus *b)
 {
 {
 	pci_read_bridge_bases(b);
 	pci_read_bridge_bases(b);
 }
 }

+ 1 - 1
arch/sh/drivers/pci/ops-sh4.c

@@ -153,7 +153,7 @@ static void __init pci_fixup_ide_bases(struct pci_dev *d)
 }
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases);
 DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases);
 
 
-char * __init pcibios_setup(char *str)
+char * __devinit pcibios_setup(char *str)
 {
 {
 	if (!strcmp(str, "off")) {
 	if (!strcmp(str, "off")) {
 		pci_probe = 0;
 		pci_probe = 0;

+ 1 - 1
arch/sh/drivers/pci/pci-st40.c

@@ -328,7 +328,7 @@ int __init st40pci_init(unsigned memStart, unsigned memSize)
 	return 1;
 	return 1;
 }
 }
 
 
-char * __init pcibios_setup(char *str)
+char * __devinit pcibios_setup(char *str)
 {
 {
 	return str;
 	return str;
 }
 }

+ 1 - 1
arch/sh/drivers/pci/pci.c

@@ -71,7 +71,7 @@ subsys_initcall(pcibios_init);
  *  Called after each bus is probed, but before its children
  *  Called after each bus is probed, but before its children
  *  are examined.
  *  are examined.
  */
  */
-void __init pcibios_fixup_bus(struct pci_bus *bus)
+void __devinit pcibios_fixup_bus(struct pci_bus *bus)
 {
 {
 	pci_read_bridge_bases(bus);
 	pci_read_bridge_bases(bus);
 }
 }