Commit dd32e11cdbc73e570f9fe7425fa820c97070a2c4
Committed by
Liam Girdwood
1 parent
84f8508a7d
Exists in
master
and in
6 other branches
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>
Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff
drivers/regulator/max8952.c
... | ... | @@ -26,7 +26,6 @@ |
26 | 26 | #include <linux/platform_device.h> |
27 | 27 | #include <linux/regulator/driver.h> |
28 | 28 | #include <linux/regulator/max8952.h> |
29 | -#include <linux/mutex.h> | |
30 | 29 | #include <linux/gpio.h> |
31 | 30 | #include <linux/io.h> |
32 | 31 | #include <linux/slab.h> |
... | ... | @@ -47,7 +46,6 @@ |
47 | 46 | struct max8952_data { |
48 | 47 | struct i2c_client *client; |
49 | 48 | struct device *dev; |
50 | - struct mutex mutex; | |
51 | 49 | struct max8952_platform_data *pdata; |
52 | 50 | struct regulator_dev *rdev; |
53 | 51 | |
... | ... | @@ -208,7 +206,6 @@ |
208 | 206 | max8952->client = client; |
209 | 207 | max8952->dev = &client->dev; |
210 | 208 | max8952->pdata = pdata; |
211 | - mutex_init(&max8952->mutex); | |
212 | 209 | |
213 | 210 | max8952->rdev = regulator_register(®ulator, max8952->dev, |
214 | 211 | &pdata->reg_data, max8952); |