diff options
author | Prarit Bhargava <prarit@redhat.com> | 2007-02-13 07:11:11 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-02-14 02:38:28 -0500 |
commit | 788c6043335590e0a483fdc18f85b1405a157bf9 (patch) | |
tree | 23e24335e62ba0f692da4707933c7680e94fa1d8 /sound/drivers/portman2x4.c | |
parent | 46f02ca36e9b2b690ebcef18fa0652c586d6c08e (diff) |
[ALSA] Fix __devinit and __devexit issues with sound drivers
Fix __devinit and __devexit issues with sound drivers.
Resolves MODPOST warnings similar to:
WARNING: sound/drivers/snd-dummy.o - Section mismatch: reference to .init.text:snd_dummy_probe from .data.rel.local between 'snd_dummy_driver' (at offset 0x0) and 'snd_dummy_controls'
WARNING: sound/drivers/snd-mtpav.o - Section mismatch: reference to .init.text:snd_mtpav_probe from .data.rel.local between 'snd_mtpav_driver' (at offset 0x0) and 'snd_mtpav_input'
WARNING: sound/drivers/snd-virmidi.o - Section mismatch: reference to .init.text:snd_virmidi_probe from .data.rel.local after 'snd_virmidi_driver' (at offset 0x0)
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/drivers/portman2x4.c')
-rw-r--r-- | sound/drivers/portman2x4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c index 6c48772aaefd..b43d4c96ed19 100644 --- a/sound/drivers/portman2x4.c +++ b/sound/drivers/portman2x4.c | |||
@@ -811,7 +811,7 @@ __err: | |||
811 | return err; | 811 | return err; |
812 | } | 812 | } |
813 | 813 | ||
814 | static int snd_portman_remove(struct platform_device *pdev) | 814 | static int __devexit snd_portman_remove(struct platform_device *pdev) |
815 | { | 815 | { |
816 | struct snd_card *card = platform_get_drvdata(pdev); | 816 | struct snd_card *card = platform_get_drvdata(pdev); |
817 | 817 | ||
@@ -824,7 +824,7 @@ static int snd_portman_remove(struct platform_device *pdev) | |||
824 | 824 | ||
825 | static struct platform_driver snd_portman_driver = { | 825 | static struct platform_driver snd_portman_driver = { |
826 | .probe = snd_portman_probe, | 826 | .probe = snd_portman_probe, |
827 | .remove = snd_portman_remove, | 827 | .remove = __dev_exit_p(snd_portman_remove), |
828 | .driver = { | 828 | .driver = { |
829 | .name = PLATFORM_DRIVER | 829 | .name = PLATFORM_DRIVER |
830 | } | 830 | } |
@@ -833,7 +833,7 @@ static struct platform_driver snd_portman_driver = { | |||
833 | /********************************************************************* | 833 | /********************************************************************* |
834 | * module init stuff | 834 | * module init stuff |
835 | *********************************************************************/ | 835 | *********************************************************************/ |
836 | static void snd_portman_unregister_all(void) | 836 | static void __init_or_module snd_portman_unregister_all(void) |
837 | { | 837 | { |
838 | int i; | 838 | int i; |
839 | 839 | ||