Skip to contentSkip to conversation

mfd: Remove unused io_lock mutex from da9052

PATCH In review Axel Lin 2 participants 2 messages Feb 22, 2012 – Feb 27, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mfd: Remove unused io_lock mutex from da9052

da9052 has been converted to use regmap API, so we can remove the unused io_lock mutex.

---
 drivers/mfd/da9052-core.c         |    3 ---
 include/linux/mfd/da9052/da9052.h |    2 --
 2 files changed, 0 insertions(+), 5 deletions(-)
drivers/mfd/da9052-core.c +0 -3
index 5ddde2a..7ff313f 100644
@@ -16,7 +16,6 @@
 #include <linux/input.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
-#include <linux/mutex.h>
 #include <linux/mfd/core.h>
 #include <linux/slab.h>
 #include <linux/module.h>
@@ -647,8 +646,6 @@ int __devinit da9052_device_init(struct da9052 *da9052, u8 chip_id)
 	struct irq_desc *desc;
 	int ret;
 
-	mutex_init(&da9052->io_lock);
-
 	if (pdata && pdata->init != NULL)
 		pdata->init(da9052);
 
include/linux/mfd/da9052/da9052.h +0 -2
index 5702d1b..7ffbd6e 100644
@@ -76,8 +76,6 @@ enum da9052_chip_id {
 struct da9052_pdata;
 
 struct da9052 {
-	struct mutex io_lock;
-
 	struct device *dev;
 	struct regmap *regmap;
 
Signature · 1 line
1.7.5.4
#1 lore raw

Hi Axel,

Quoted 2 lines · Axel Lin

da9052 has been converted to use regmap API, so we can remove the unused io_lock mutex.

Thanks, patch applied.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/