1
0
Fork 0

hwmon: (w83781d) Fix linking when built-in

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>
hifive-unleashed-5.1
Geert Uytterhoeven 2008-10-26 17:04:38 +01:00 committed by Jean Delvare
parent 57f8f7b60d
commit dd56b63895
1 changed files with 2 additions and 2 deletions

View 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)
{
}