[ALSA] more section mismatches
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 25 Jun 2007 10:08:01 +0000 (12:08 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:34 +0000 (11:11 +0200)
Something about __init_or_module isn't working as expected (?).
CONFIG_HOTPLUG=y
CONFIG_MODULES=n
Fix shared init/exit code helper:
WARNING: sound/built-in.o(.exit.text+0x243): Section mismatch: reference to .init.text: (between 'alsa_card_mpu401_exit' and 'ac97_bus_exit')
WARNING: sound/built-in.o(.exit.text+0x21b): Section mismatch: reference to .init.text: (between 'alsa_card_dummy_exit' and 'alsa_card_serial_exit')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/drivers/dummy.c
sound/drivers/mpu401/mpu401.c

index a0f28f51fc7eb89c0b7ea30da694a224390df8b8..4360ae9de19c4ec96ed7449f2ac525aec92e36a1 100644 (file)
@@ -659,7 +659,7 @@ static struct platform_driver snd_dummy_driver = {
        },
 };
 
-static void __init_or_module snd_dummy_unregister_all(void)
+static void snd_dummy_unregister_all(void)
 {
        int i;
 
index 1d563e515c177035daa9fad2ee0342902867535e..67c6e9745418b53748a9d67c21efdf7f603c54cf 100644 (file)
@@ -228,7 +228,7 @@ static struct pnp_driver snd_mpu401_pnp_driver = {
 static struct pnp_driver snd_mpu401_pnp_driver;
 #endif
 
-static void __init_or_module snd_mpu401_unregister_all(void)
+static void snd_mpu401_unregister_all(void)
 {
        int i;