Skip to content

Commit

Permalink
hwmon: (w83781d) Fix linking when built-in
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
  • Loading branch information
geertu authored and Jean Delvare committed Oct 26, 2008
1 parent 57f8f7b commit dd56b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hwmon/w83781d.c
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,7 @@ w83781d_isa_register(void)
return res;
}

static void __exit
static void
w83781d_isa_unregister(void)
{
if (pdev) {
Expand Down Expand Up @@ -2017,7 +2017,7 @@ w83781d_isa_register(void)
return 0;
}

static void __exit
static void
w83781d_isa_unregister(void)
{
}
Expand Down

0 comments on commit dd56b63

Please sign in to comment.