]> git.neil.brown.name Git - gta04.git/commitdiff
mfd: Remove unused max77693 iolock mutex
authorAxel Lin <axel.lin@gmail.com>
Thu, 24 May 2012 08:57:46 +0000 (16:57 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jul 2012 22:16:07 +0000 (00:16 +0200)
Now this driver is using regmap APIs, 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>
drivers/mfd/max77693.c
include/linux/mfd/max77693-private.h

index e9e4278722f3af307fdfb53b5413c2d5dc61daf1..4055bc2d36fb9ded8d0ef0aab01d65fe32f6aa7b 100644 (file)
@@ -138,8 +138,6 @@ static int max77693_i2c_probe(struct i2c_client *i2c,
 
        max77693->wakeup = pdata->wakeup;
 
-       mutex_init(&max77693->iolock);
-
        if (max77693_read_reg(max77693->regmap,
                                MAX77693_PMIC_REG_PMIC_ID2, &reg_data) < 0) {
                dev_err(max77693->dev, "device not found on this channel\n");
index 68263c5fa53c00fd8d125c6dcaa4c7d2dfafe1f7..1eeae5c07915dea761aba5d353db41d7bf033e39 100644 (file)
@@ -190,7 +190,6 @@ struct max77693_dev {
        struct i2c_client *i2c;         /* 0xCC , PMIC, Charger, Flash LED */
        struct i2c_client *muic;        /* 0x4A , MUIC */
        struct i2c_client *haptic;      /* 0x90 , Haptic */
-       struct mutex iolock;
 
        int type;