From: Randy Dunlap Date: Sat, 16 Jun 2007 17:16:02 +0000 (-0700) Subject: toshiba_acpi: fix section mismatch in allyesconfig X-Git-Tag: v2.6.22-rc5~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b1d93de3e4633c4cbfd622a3564d8268a116a46a;p=linux-2.6-omap-h63xx.git toshiba_acpi: fix section mismatch in allyesconfig Fix section error (allyesconfig). The exit function is called from init, so functions that are called by the exit function cannot be marked __exit. WARNING: drivers/built-in.o(.text+0xe5bc6): Section mismatch: reference to .exit. text: (between 'toshiba_acpi_exit' and 'hci_raw') Signed-off-by: Randy Dunlap Cc: Len Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c index 1cfbecb0ac1..13369b45563 100644 --- a/drivers/acpi/toshiba_acpi.c +++ b/drivers/acpi/toshiba_acpi.c @@ -524,7 +524,7 @@ static acpi_status __init add_device(void) return AE_OK; } -static acpi_status __exit remove_device(void) +static acpi_status remove_device(void) { ProcItem *item;