From: Tony Lindgren Date: Mon, 16 Jan 2006 23:49:30 +0000 (-0800) Subject: ARM: OMAP: Convert dsp_mem semaphore to mutex X-Git-Tag: v2.6.16-omap1~133 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=69a7b70e70bc9173040cd53fe55518e7e99538a9;p=linux-2.6-omap-h63xx.git ARM: OMAP: Convert dsp_mem semaphore to mutex Convert dsp_mem semaphore to mutex --- diff --git a/arch/arm/plat-omap/dsp/dsp_mem.c b/arch/arm/plat-omap/dsp/dsp_mem.c index 3d2fc16c68a..a998db7beab 100644 --- a/arch/arm/plat-omap/dsp/dsp_mem.c +++ b/arch/arm/plat-omap/dsp/dsp_mem.c @@ -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; }