Skip to content

Commit

Permalink
ARM: 5675/1: The semaphore is used as mutex so make it a mutex
Browse files Browse the repository at this point in the history
The semaphore is used as mutex so make it a mutex.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
wanzongshun authored and Russell King committed Aug 15, 2009
1 parent 58b5369 commit f346bec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions arch/arm/mach-w90x900/mfp-w90p910.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#define ENI2C0 (0x01 << 14)
#define ENI2C1 (0x01 << 16)

static DECLARE_MUTEX(mfp_sem);
static DEFINE_MUTEX(mfp_mutex);

void mfp_set_groupf(struct device *dev)
{
Expand All @@ -49,7 +49,7 @@ void mfp_set_groupf(struct device *dev)

BUG_ON(!dev);

down(&mfp_sem);
mutex_lock(&mfp_mutex);

dev_id = dev_name(dev);

Expand All @@ -62,7 +62,7 @@ void mfp_set_groupf(struct device *dev)

__raw_writel(mfpen, REG_MFSEL);

up(&mfp_sem);
mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupf);

Expand All @@ -73,7 +73,7 @@ void mfp_set_groupc(struct device *dev)

BUG_ON(!dev);

down(&mfp_sem);
mutex_lock(&mfp_mutex);

dev_id = dev_name(dev);

Expand All @@ -92,7 +92,7 @@ void mfp_set_groupc(struct device *dev)

__raw_writel(mfpen, REG_MFSEL);

up(&mfp_sem);
mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupc);

Expand All @@ -103,7 +103,7 @@ void mfp_set_groupi(struct device *dev)

BUG_ON(!dev);

down(&mfp_sem);
mutex_lock(&mfp_mutex);

dev_id = dev_name(dev);

Expand All @@ -120,7 +120,7 @@ void mfp_set_groupi(struct device *dev)

__raw_writel(mfpen, REG_MFSEL);

up(&mfp_sem);
mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupi);

Expand All @@ -131,7 +131,7 @@ void mfp_set_groupg(struct device *dev)

BUG_ON(!dev);

down(&mfp_sem);
mutex_lock(&mfp_mutex);

dev_id = dev_name(dev);

Expand All @@ -152,7 +152,7 @@ void mfp_set_groupg(struct device *dev)

__raw_writel(mfpen, REG_MFSEL);

up(&mfp_sem);
mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupg);

0 comments on commit f346bec

Please sign in to comment.