LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] rtc: ds3234 doesn't link when built-in
@ 2008-10-26 14:19 Geert Uytterhoeven
2008-10-26 22:11 ` Alessandro Zummo
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2008-10-26 14:19 UTC (permalink / raw)
To: Dennis Aberilla, Alessandro Zummo, David Brownell
Cc: Andrew Morton, Linux Kernel Development
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>
---
drivers/rtc/rtc-ds3234.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/rtc/rtc-ds3234.c
+++ b/drivers/rtc/rtc-ds3234.c
@@ -189,7 +189,7 @@ static const struct rtc_class_ops ds3234
.set_time = ds3234_set_time,
};
-static int ds3234_probe(struct spi_device *spi)
+static int __devinit ds3234_probe(struct spi_device *spi)
{
struct rtc_device *rtc;
unsigned char tmp;
@@ -249,7 +249,7 @@ static int ds3234_probe(struct spi_devic
return 0;
}
-static int __exit ds3234_remove(struct spi_device *spi)
+static int __devexit ds3234_remove(struct spi_device *spi)
{
struct ds3234 *chip = platform_get_drvdata(spi);
struct rtc_device *rtc = chip->rtc;
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] rtc: ds3234 doesn't link when built-in
2008-10-26 14:19 [PATCH] rtc: ds3234 doesn't link when built-in Geert Uytterhoeven
@ 2008-10-26 22:11 ` Alessandro Zummo
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Zummo @ 2008-10-26 22:11 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Dennis Aberilla, Alessandro Zummo, David Brownell, Andrew Morton,
Linux Kernel Development
On Sun, 26 Oct 2008 15:19:20 +0100 (CET)
Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> 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>
--
Best regards,
Alessandro Zummo,
Tower Technologies - Torino, Italy
http://www.towertech.it
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-26 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-26 14:19 [PATCH] rtc: ds3234 doesn't link when built-in Geert Uytterhoeven
2008-10-26 22:11 ` Alessandro Zummo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).