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/virmidi.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/virmidi.c')
-rw-r--r-- | sound/drivers/virmidi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index 59171f8200df..70e70baa3bc8 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -85,7 +85,7 @@ struct snd_card_virmidi { | |||
85 | static struct platform_device *devices[SNDRV_CARDS]; | 85 | static struct platform_device *devices[SNDRV_CARDS]; |
86 | 86 | ||
87 | 87 | ||
88 | static int __init snd_virmidi_probe(struct platform_device *devptr) | 88 | static int __devinit snd_virmidi_probe(struct platform_device *devptr) |
89 | { | 89 | { |
90 | struct snd_card *card; | 90 | struct snd_card *card; |
91 | struct snd_card_virmidi *vmidi; | 91 | struct snd_card_virmidi *vmidi; |
@@ -129,7 +129,7 @@ static int __init snd_virmidi_probe(struct platform_device *devptr) | |||
129 | return err; | 129 | return err; |
130 | } | 130 | } |
131 | 131 | ||
132 | static int snd_virmidi_remove(struct platform_device *devptr) | 132 | static int __devexit snd_virmidi_remove(struct platform_device *devptr) |
133 | { | 133 | { |
134 | snd_card_free(platform_get_drvdata(devptr)); | 134 | snd_card_free(platform_get_drvdata(devptr)); |
135 | platform_set_drvdata(devptr, NULL); | 135 | platform_set_drvdata(devptr, NULL); |
@@ -140,7 +140,7 @@ static int snd_virmidi_remove(struct platform_device *devptr) | |||
140 | 140 | ||
141 | static struct platform_driver snd_virmidi_driver = { | 141 | static struct platform_driver snd_virmidi_driver = { |
142 | .probe = snd_virmidi_probe, | 142 | .probe = snd_virmidi_probe, |
143 | .remove = snd_virmidi_remove, | 143 | .remove = __devexit_p(snd_virmidi_remove), |
144 | .driver = { | 144 | .driver = { |
145 | .name = SND_VIRMIDI_DRIVER | 145 | .name = SND_VIRMIDI_DRIVER |
146 | }, | 146 | }, |