Skip to content

Commit

Permalink
mfd: lp873x: Remove unused mutex lock from struct lp873x
Browse files Browse the repository at this point in the history
The mutex is not used, so remove it.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
  • Loading branch information
AxelLin authored and Lee Jones committed Oct 4, 2016
1 parent 2c2469b commit fe62c47
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/mfd/lp873x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion include/linux/mfd/lp873x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit fe62c47

Please sign in to comment.