]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
commitdd56b638951936cda945ba5641cc44927a5f1c6d
tree707e5449c73191894e2c32f7303e006e6063082e
parent57f8f7b60db6f1ed2c6918ab9230c4623a9dbe37
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>
drivers/hwmon/w83781d.c