]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Convert dsp_mem semaphore to mutex
authorTony Lindgren <tony@atomide.com>
Mon, 16 Jan 2006 23:49:30 +0000 (15:49 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 16 Jan 2006 23:49:30 +0000 (15:49 -0800)
Convert dsp_mem semaphore to mutex

arch/arm/plat-omap/dsp/dsp_mem.c

index 3d2fc16c68ae8dd967d262ab62d3dbbb7fe90979..a998db7beab1c3a4fae4246b8609efc5fd6941f7 100644 (file)
@@ -1252,7 +1252,7 @@ static loff_t dsp_mem_lseek(struct file *file, loff_t offset, int orig)
 {
        loff_t ret;
 
-       down(&file->f_dentry->d_inode->i_sem);
+       mutex_lock(&file->f_dentry->d_inode->i_mutex);
        switch (orig) {
        case 0:
                file->f_pos = offset;
@@ -1265,7 +1265,7 @@ static loff_t dsp_mem_lseek(struct file *file, loff_t offset, int orig)
        default:
                ret = -EINVAL;
        }
-       up(&file->f_dentry->d_inode->i_sem);
+       mutex_unlock(&file->f_dentry->d_inode->i_mutex);
        return ret;
 }