lkml.org 
[lkml]   [2003]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.4 patch] fix ad1889.c .text.exit error
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.020 / U:1.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site