]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
rtc: ds3234 doesn't link when built-in
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 29 Oct 2008 21:01:13 +0000 (14:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Oct 2008 18:38:47 +0000 (11:38 -0700)
commitbcc378e777514832c11b09d194a7f946e7ad803a
treeda3a0fc0ff5902bcb925380f7423cf020d7a30bc
parent81365c31afcea2bd6d551a029282d59c89e8fd54
rtc: ds3234 doesn't link when built-in

When ds3234 is built-in, the final links fails with the following vague error
message:

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

ds3234_remove() cannot be marked __exit, as it's accessed via __devexit_p().
In addition, mark ds3234_probe() __devinit while we're at it.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds3234.c