X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=sound%2Fmips%2Fsgio2audio.c;h=f1d9d16b54864258ce47868556f4b2f5888909f7;hb=ba579eb7b30791751f556ee01905636cda50c864;hp=e497525bc11bcf50612c071bdfc3c5ba186bacf1;hpb=ad0b0822f98ef547e2461ce463e4233bad7848a8;p=safe%2Fjmp%2Flinux-2.6 diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c index e497525..f1d9d16 100644 --- a/sound/mips/sgio2audio.c +++ b/sound/mips/sgio2audio.c @@ -609,7 +609,7 @@ static int snd_sgio2audio_pcm_hw_params(struct snd_pcm_substream *substream, /* alloc virtual 'dma' area */ if (runtime->dma_area) vfree(runtime->dma_area); - runtime->dma_area = vmalloc(size); + runtime->dma_area = vmalloc_user(size); if (runtime->dma_area == NULL) return -ENOMEM; runtime->dma_bytes = size; @@ -973,7 +973,7 @@ static int __devinit snd_sgio2audio_probe(struct platform_device *pdev) return 0; } -static int __exit snd_sgio2audio_remove(struct platform_device *pdev) +static int __devexit snd_sgio2audio_remove(struct platform_device *pdev) { struct snd_card *card = platform_get_drvdata(pdev);