aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2008-10-26 12:04:38 -0400
committerJean Delvare <khali@linux-fr.org>2008-10-26 12:04:38 -0400
commitdd56b638951936cda945ba5641cc44927a5f1c6d (patch)
tree707e5449c73191894e2c32f7303e006e6063082e
parent57f8f7b60db6f1ed2c6918ab9230c4623a9dbe37 (diff)
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>
-rw-r--r--drivers/hwmon/w83781d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c
index d4d1b859d4f1..fc12bd412e3a 100644
--- a/drivers/hwmon/w83781d.c
+++ b/drivers/hwmon/w83781d.c
@@ -1968,7 +1968,7 @@ exit:
1968 return res; 1968 return res;
1969} 1969}
1970 1970
1971static void __exit 1971static void
1972w83781d_isa_unregister(void) 1972w83781d_isa_unregister(void)
1973{ 1973{
1974 if (pdev) { 1974 if (pdev) {
@@ -2017,7 +2017,7 @@ w83781d_isa_register(void)
2017 return 0; 2017 return 0;
2018} 2018}
2019 2019
2020static void __exit 2020static void
2021w83781d_isa_unregister(void) 2021w83781d_isa_unregister(void)
2022{ 2022{
2023} 2023}