]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
hwmon: (w83781d) Fix linking when built-in
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 26 Oct 2008 16:04:38 +0000 (17:04 +0100)
committerJean Delvare <khali@linux-fr.org>
Sun, 26 Oct 2008 16:04:38 +0000 (17:04 +0100)
When w83781d is built-in, the final links fails with the following vague error
message:

`.exit.text' referenced in section `.init.text' of drivers/built-in.o: defined
in discarded section `.exit.text' of drivers/built-in.o

w83781d_isa_unregister() cannot be marked __exit, as it's also called from
sensors_w83781d_init(), which is marked __init.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83781d.c

index d4d1b859d4f1df2a9262fd3a22629de4eb484292..fc12bd412e3a4917b5645339d3dd388af8f0d3a3 100644 (file)
@@ -1968,7 +1968,7 @@ exit:
        return res;
 }
 
-static void __exit
+static void
 w83781d_isa_unregister(void)
 {
        if (pdev) {
@@ -2017,7 +2017,7 @@ w83781d_isa_register(void)
        return 0;
 }
 
-static void __exit
+static void
 w83781d_isa_unregister(void)
 {
 }