Skip to content

Commit fe62c47

Browse files
AxelLinLee Jones
authored andcommitted
mfd: lp873x: Remove unused mutex lock from struct lp873x
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>
1 parent 2c2469b commit fe62c47

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/mfd/lp873x.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ static int lp873x_probe(struct i2c_client *client,
5353
return ret;
5454
}
5555

56-
mutex_init(&lp873->lock);
57-
5856
ret = regmap_read(lp873->regmap, LP873X_REG_OTP_REV, &otpid);
5957
if (ret) {
6058
dev_err(lp873->dev, "Failed to read OTP ID\n");

‎include/linux/mfd/lp873x.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ enum lp873x_regulator_id {
263263
struct lp873x {
264264
struct device *dev;
265265
u8 rev;
266-
struct mutex lock; /* lock guarding the data structure */
267266
struct regmap *regmap;
268267
};
269268
#endif /* __LINUX_MFD_LP873X_H */

0 commit comments

Comments
 (0)