diff options
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 429af143f5d3..46f3d3486067 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c | |||
@@ -84,7 +84,7 @@ struct snd_card_virmidi { | |||
84 | static struct platform_device *devices[SNDRV_CARDS]; | 84 | static struct platform_device *devices[SNDRV_CARDS]; |
85 | 85 | ||
86 | 86 | ||
87 | static int __init snd_virmidi_probe(struct platform_device *devptr) | 87 | static int __devinit snd_virmidi_probe(struct platform_device *devptr) |
88 | { | 88 | { |
89 | struct snd_card *card; | 89 | struct snd_card *card; |
90 | struct snd_card_virmidi *vmidi; | 90 | struct snd_card_virmidi *vmidi; |
@@ -128,7 +128,7 @@ static int __init snd_virmidi_probe(struct platform_device *devptr) | |||
128 | return err; | 128 | return err; |
129 | } | 129 | } |
130 | 130 | ||
131 | static int snd_virmidi_remove(struct platform_device *devptr) | 131 | static int __devexit snd_virmidi_remove(struct platform_device *devptr) |
132 | { | 132 | { |
133 | snd_card_free(platform_get_drvdata(devptr)); | 133 | snd_card_free(platform_get_drvdata(devptr)); |
134 | platform_set_drvdata(devptr, NULL); | 134 | platform_set_drvdata(devptr, NULL); |
@@ -139,7 +139,7 @@ static int snd_virmidi_remove(struct platform_device *devptr) | |||
139 | 139 | ||
140 | static struct platform_driver snd_virmidi_driver = { | 140 | static struct platform_driver snd_virmidi_driver = { |
141 | .probe = snd_virmidi_probe, | 141 | .probe = snd_virmidi_probe, |
142 | .remove = snd_virmidi_remove, | 142 | .remove = __devexit_p(snd_virmidi_remove), |
143 | .driver = { | 143 | .driver = { |
144 | .name = SND_VIRMIDI_DRIVER | 144 | .name = SND_VIRMIDI_DRIVER |
145 | }, | 145 | }, |