X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Foss%2Fsoundcard.c;h=7e228966eca926ba766fc61b755a68781bab8209;hb=9e1bf581d67d87a1d7fc0ea500729e3a03643a26;hp=f25c75ec5761e2b3beb6ce229bf35ee558e5f6bd;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c index f25c75ec5..7e228966e 100644 --- a/sound/oss/soundcard.c +++ b/sound/oss/soundcard.c @@ -127,7 +127,7 @@ static int get_mixer_levels(void __user * arg) { int n; - if (__get_user(n, (int __user *)(&(((mixer_vol_table __user *)arg)->num)))) + if (__get_user(n, (int __user *)(&(((mixer_vol_table *__user )arg)->num)))) return -EFAULT; if (n < 0 || n >= num_mixer_volumes) return -EINVAL; @@ -463,9 +463,9 @@ static int sound_mmap(struct file *file, struct vm_area_struct *vma) if (size != dmap->bytes_in_use) { printk(KERN_WARNING "Sound: mmap() size = %ld. Should be %d\n", size, dmap->bytes_in_use); } - if (remap_pfn_range(vma, vma->vm_start, - virt_to_phys(dmap->raw_buf) >> PAGE_SHIFT, - vma->vm_end - vma->vm_start, vma->vm_page_prot)) { + if (remap_page_range(vma, vma->vm_start, virt_to_phys(dmap->raw_buf), + vma->vm_end - vma->vm_start, + vma->vm_page_prot)) { unlock_kernel(); return -EAGAIN; }