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/isa/sb | |
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/isa/sb')
-rw-r--r-- | sound/isa/sb/sb8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/isa/sb/sb8.c b/sound/isa/sb/sb8.c index 268ebd34703e..be1e83e6dea3 100644 --- a/sound/isa/sb/sb8.c +++ b/sound/isa/sb/sb8.c | |||
@@ -83,7 +83,7 @@ static void snd_sb8_free(struct snd_card *card) | |||
83 | release_and_free_resource(acard->fm_res); | 83 | release_and_free_resource(acard->fm_res); |
84 | } | 84 | } |
85 | 85 | ||
86 | static int __init snd_sb8_probe(struct platform_device *pdev) | 86 | static int __devinit snd_sb8_probe(struct platform_device *pdev) |
87 | { | 87 | { |
88 | int dev = pdev->id; | 88 | int dev = pdev->id; |
89 | struct snd_sb *chip; | 89 | struct snd_sb *chip; |
@@ -193,7 +193,7 @@ static int __init snd_sb8_probe(struct platform_device *pdev) | |||
193 | return err; | 193 | return err; |
194 | } | 194 | } |
195 | 195 | ||
196 | static int snd_sb8_remove(struct platform_device *pdev) | 196 | static int __devexit snd_sb8_remove(struct platform_device *pdev) |
197 | { | 197 | { |
198 | snd_card_free(platform_get_drvdata(pdev)); | 198 | snd_card_free(platform_get_drvdata(pdev)); |
199 | platform_set_drvdata(pdev, NULL); | 199 | platform_set_drvdata(pdev, NULL); |
@@ -230,7 +230,7 @@ static int snd_sb8_resume(struct platform_device *dev) | |||
230 | 230 | ||
231 | static struct platform_driver snd_sb8_driver = { | 231 | static struct platform_driver snd_sb8_driver = { |
232 | .probe = snd_sb8_probe, | 232 | .probe = snd_sb8_probe, |
233 | .remove = snd_sb8_remove, | 233 | .remove = __devexit_p(snd_sb8_remove), |
234 | #ifdef CONFIG_PM | 234 | #ifdef CONFIG_PM |
235 | .suspend = snd_sb8_suspend, | 235 | .suspend = snd_sb8_suspend, |
236 | .resume = snd_sb8_resume, | 236 | .resume = snd_sb8_resume, |