]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: fix section mismatch in acpi_pci_root_add
authorSam Ravnborg <sam@ravnborg.org>
Sun, 17 Feb 2008 12:23:03 +0000 (13:23 +0100)
committerLen Brown <len.brown@intel.com>
Thu, 21 Feb 2008 07:56:32 +0000 (02:56 -0500)
Fix following warning:
WARNING: vmlinux.o(.text+0x550e85): Section mismatch in reference from the function acpi_pci_root_add() to the function .devinit.text:pci_acpi_scan_root()

acpi_pci_root_add uses a __devinit annotated function and
it looks like annotating it __devinit too is the correct fix.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_root.c

index f14ff1ffab29c24156d2cff92d75340460337745..c3fed31166b552761f2bb9c3b26ef2b7c3e47592 100644 (file)
@@ -184,7 +184,7 @@ static void acpi_pci_bridge_scan(struct acpi_device *device)
                }
 }
 
-static int acpi_pci_root_add(struct acpi_device *device)
+static int __devinit acpi_pci_root_add(struct acpi_device *device)
 {
        int result = 0;
        struct acpi_pci_root *root = NULL;