mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.4 patch] fix ad1889.c .text.exit error
@ 2003-03-27 22:14 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2003-03-27 22:14 UTC (permalink / raw)
  To: Randolph Chung, Marcelo Tosatti; +Cc: linux-kernel

In 2,4,21-pre6 the function ad1889_remove in drivers/sound/ad1889.c is 
__devexit but the pointer to it doesn't use __devexit_p resulting in a 
.text.exit error if !CONFIG_HOTPLUG.

The following patch is needed:

--- linux-2.4.21-pre6-full-nohotplug/drivers/sound/ad1889.c.old	2003-03-27 22:40:12.000000000 +0100
+++ linux-2.4.21-pre6-full-nohotplug/drivers/sound/ad1889.c	2003-03-27 22:42:39.000000000 +0100
@@ -1059,7 +1059,7 @@
 	name:		DEVNAME,
 	id_table:	ad1889_id_tbl,
 	probe:		ad1889_probe,
-	remove:		ad1889_remove,
+	remove:		__devexit_p(ad1889_remove),
 };
 
 static int __init ad1889_init_module(void)


I've tested the compilation with 2.4.21-pre6.


Please apply
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-27 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-27 22:14 [2.4 patch] fix ad1889.c .text.exit error Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®