From: Sam Ravnborg Date: Sun, 17 Feb 2008 12:23:03 +0000 (+0100) Subject: ACPI: fix section mismatch in acpi_pci_root_add X-Git-Tag: firefly_0821_release~22001^2~2^4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b5678a34762edf2c8de1c60c125fea42a8c17e63;p=firefly-linux-kernel-4.4.55.git ACPI: fix section mismatch in acpi_pci_root_add 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 Signed-off-by: Len Brown --- diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index f14ff1ffab29..c3fed31166b5 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c @@ -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;