Skip to contentSkip to conversation

mfd: lp873x: Remove unused mutex lock from struct lp873x

PATCH Applied Axel Lin 2 participants 2 messages Sep 6, 2016 – Sep 13, 2016 Multifunction devices (MFD)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mfd: lp873x: Remove unused mutex lock from struct lp873x

The mutex is not used, so remove it.

---
 drivers/mfd/lp873x.c       | 2 --
 include/linux/mfd/lp873x.h | 1 -
 2 files changed, 3 deletions(-)
drivers/mfd/lp873x.c +0 -2
index 9af064c..873c608 100644
@@ -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");
include/linux/mfd/lp873x.h +0 -1
index 83b1bd7..edbec83 100644
@@ -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 */
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 7 lines · Axel Lin

The mutex is not used, so remove it.

---
 drivers/mfd/lp873x.c       | 2 --
 include/linux/mfd/lp873x.h | 1 -
 2 files changed, 3 deletions(-)

Applied, thanks.

Quoted 25 lines
drivers/mfd/lp873x.c +0 -2
index 9af064c..873c608 100644
@@ -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");
include/linux/mfd/lp873x.h +0 -1
index 83b1bd7..edbec83 100644
@@ -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 */
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog