Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe62c477 authored by Axel Lin's avatar Axel Lin Committed by Lee Jones
Browse files

mfd: lp873x: Remove unused mutex lock from struct lp873x



The mutex is not used, so remove it.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 2c2469bc
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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");
+0 −1
Original line number Diff line number Diff line
@@ -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 */