#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)
{
BUG_ON(!dev);
- down(&mfp_sem);
+ mutex_lock(&mfp_mutex);
dev_id = dev_name(dev);
__raw_writel(mfpen, REG_MFSEL);
- up(&mfp_sem);
+ mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupf);
BUG_ON(!dev);
- down(&mfp_sem);
+ mutex_lock(&mfp_mutex);
dev_id = dev_name(dev);
__raw_writel(mfpen, REG_MFSEL);
- up(&mfp_sem);
+ mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupc);
BUG_ON(!dev);
- down(&mfp_sem);
+ mutex_lock(&mfp_mutex);
dev_id = dev_name(dev);
__raw_writel(mfpen, REG_MFSEL);
- up(&mfp_sem);
+ mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupi);
BUG_ON(!dev);
- down(&mfp_sem);
+ mutex_lock(&mfp_mutex);
dev_id = dev_name(dev);
__raw_writel(mfpen, REG_MFSEL);
- up(&mfp_sem);
+ mutex_unlock(&mfp_mutex);
}
EXPORT_SYMBOL(mfp_set_groupg);