diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2011-08-02 20:58:03 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-08-08 12:15:09 -0400 |
commit | dd32e11cdbc73e570f9fe7425fa820c97070a2c4 (patch) | |
tree | db07c537a441dbd92c00cf63c92198836bae24bd /drivers/regulator | |
parent | 84f8508a7d0357f841c2fa66b7c39d98c5b5e13e (diff) |
regulator: max8952: removed unused mutex.
This patch removes a mutex that is never used in the driver.
Reported-by: Axel Lin
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max8952.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c index 486ed8141fc..3883d85c5b8 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | #include <linux/regulator/driver.h> | 27 | #include <linux/regulator/driver.h> |
28 | #include <linux/regulator/max8952.h> | 28 | #include <linux/regulator/max8952.h> |
29 | #include <linux/mutex.h> | ||
30 | #include <linux/gpio.h> | 29 | #include <linux/gpio.h> |
31 | #include <linux/io.h> | 30 | #include <linux/io.h> |
32 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
@@ -47,7 +46,6 @@ enum { | |||
47 | struct max8952_data { | 46 | struct max8952_data { |
48 | struct i2c_client *client; | 47 | struct i2c_client *client; |
49 | struct device *dev; | 48 | struct device *dev; |
50 | struct mutex mutex; | ||
51 | struct max8952_platform_data *pdata; | 49 | struct max8952_platform_data *pdata; |
52 | struct regulator_dev *rdev; | 50 | struct regulator_dev *rdev; |
53 | 51 | ||
@@ -208,7 +206,6 @@ static int __devinit max8952_pmic_probe(struct i2c_client *client, | |||
208 | max8952->client = client; | 206 | max8952->client = client; |
209 | max8952->dev = &client->dev; | 207 | max8952->dev = &client->dev; |
210 | max8952->pdata = pdata; | 208 | max8952->pdata = pdata; |
211 | mutex_init(&max8952->mutex); | ||
212 | 209 | ||
213 | max8952->rdev = regulator_register(®ulator, max8952->dev, | 210 | max8952->rdev = regulator_register(®ulator, max8952->dev, |
214 | &pdata->reg_data, max8952); | 211 | &pdata->reg_data, max8952); |