Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1477009 > unrolled thread

[PATCH] mfd: lp873x: Remove unused mutex lock from struct lp873x

Started byAxel Lin <axel.lin@ingics.com>
First post2016-09-06 03:10 +0200
Last post2016-09-06 03:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] mfd: lp873x: Remove unused mutex lock from struct lp873x Axel Lin <axel.lin@ingics.com> - 2016-09-06 03:10 +0200

#1477009 — [PATCH] mfd: lp873x: Remove unused mutex lock from struct lp873x

FromAxel Lin <axel.lin@ingics.com>
Date2016-09-06 03:10 +0200
Subject[PATCH] mfd: lp873x: Remove unused mutex lock from struct lp873x
Message-ID<sed3I-3i6-1@gated-at.bofh.it>
The mutex is not used, so remove it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/mfd/lp873x.c       | 2 --
 include/linux/mfd/lp873x.h | 1 -
 2 files changed, 3 deletions(-)

diff --git a/drivers/mfd/lp873x.c b/drivers/mfd/lp873x.c
index 9af064c..873c608 100644
--- a/drivers/mfd/lp873x.c
+++ b/drivers/mfd/lp873x.c
@@ -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");
diff --git a/include/linux/mfd/lp873x.h b/include/linux/mfd/lp873x.h
index 83b1bd7..edbec83 100644
--- a/include/linux/mfd/lp873x.h
+++ b/include/linux/mfd/lp873x.h
@@ -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 */
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web