From 69a7b70e70bc9173040cd53fe55518e7e99538a9 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Mon, 16 Jan 2006 15:49:30 -0800 Subject: [PATCH] ARM: OMAP: Convert dsp_mem semaphore to mutex Convert dsp_mem semaphore to mutex --- arch/arm/plat-omap/dsp/dsp_mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.41.1