2002-06-04 05:07:42

by Albert Cranford

[permalink] [raw]
Subject: [patch] 2.5.20 i2c-elektor fix

# i2c-elektor.c:Adding call to pcf_isa_init to i2c_pcfisa_init causes:
# i2c-elektor.o: In function `i2c_pcfisa_init':
# i2c-elektor.o(.text.init+0x95): undefined reference to `local symbol
# i2c-elektor.c: fix by removing __exit for inline compiling.
--- linux/drivers/i2c/i2c-elektor.c.orig 2002-05-14 23:14:40.000000000 -0400
+++ linux/drivers/i2c/i2c-elektor.c 2002-05-16 09:38:09.000000000 -0400
@@ -160,7 +160,7 @@
}


-static void __exit pcf_isa_exit(void)
+static void pcf_isa_exit(void)
{
if (irq > 0) {
disable_irq(irq);


Attachments:
47-i2c-4-patch (540.00 B)

2002-06-04 12:59:24

by Alan

[permalink] [raw]
Subject: Re: [patch] 2.5.20 i2c-elektor fix

On Tue, 2002-06-04 at 06:07, Albert Cranford wrote:
> Hello Linus,
> The attached patch fixes i2c-elektor.c exit function.
> Albert
> --

Surely you just need to include <linux/init.h> ?

2002-06-04 16:14:30

by Thunder from the hill

[permalink] [raw]
Subject: Re: [patch] 2.5.20 i2c-elektor fix

Hi,

On 4 Jun 2002, Alan Cox wrote:
> Surely you just need to include <linux/init.h> ?

This can't be the fix, as <linux/init.h> is already #included.

Regards,
Thunder
--
ship is leaving right on time | Thunder from the hill at ngforever
empty harbour, wave goodbye |
evacuation of the isle | free inhabitant not directly
caveman's paintings drowning | belonging anywhere