Skip to content

Commit

Permalink
mfd: Remove unused max77686 iolock mutex
Browse files Browse the repository at this point in the history
Now this driver is using regmap API, the iolock mutex is not used and
can be removed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Jul 8, 2012
1 parent 2573f6d commit b874809
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/mfd/max77686.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <linux/i2c.h>
#include <linux/pm_runtime.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/mfd/core.h>
#include <linux/mfd/max77686.h>
#include <linux/mfd/max77686-private.h>
Expand Down Expand Up @@ -79,8 +78,6 @@ static int max77686_i2c_probe(struct i2c_client *i2c,
max77686->wakeup = pdata->wakeup;
max77686->irq_gpio = pdata->irq_gpio;

mutex_init(&max77686->iolock);

if (regmap_read(max77686->regmap,
MAX77686_REG_DEVICE_ID, &data) < 0) {
dev_err(max77686->dev,
Expand Down
1 change: 0 additions & 1 deletion include/linux/mfd/max77686-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ struct max77686_dev {
struct device *dev;
struct i2c_client *i2c; /* 0xcc / PMIC, Battery Control, and FLASH */
struct i2c_client *rtc; /* slave addr 0x0c */
struct mutex iolock;

int type;

Expand Down

0 comments on commit b874809

Please sign in to comment.