mfd: lp873x: Remove unused mutex lock from struct lp873x
authorAxel Lin <axel.lin@ingics.com>
Tue, 6 Sep 2016 00:59:55 +0000 (08:59 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:04 +0000 (15:48 +0100)
The mutex is not used, so remove it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/lp873x.c
include/linux/mfd/lp873x.h

index 9af064c..873c608 100644 (file)
@@ -53,8 +53,6 @@ static int lp873x_probe(struct i2c_client *client,
                return ret;
        }
 
-       mutex_init(&lp873->lock);
-
        ret = regmap_read(lp873->regmap, LP873X_REG_OTP_REV, &otpid);
        if (ret) {
                dev_err(lp873->dev, "Failed to read OTP ID\n");
index 83b1bd7..edbec83 100644 (file)
@@ -263,7 +263,6 @@ enum lp873x_regulator_id {
 struct lp873x {
        struct device *dev;
        u8 rev;
-       struct mutex lock;      /* lock guarding the data structure */
        struct regmap *regmap;
 };
 #endif /* __LINUX_MFD_LP873X_H */