Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

MyungJoo Ham and committed by
Liam Girdwood
dd32e11c 84f8508a

-3
-3
drivers/regulator/max8952.c
··· 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> ··· 46 47 struct max8952_data { 47 48 struct i2c_client *client; 48 49 struct device *dev; 49 - struct mutex mutex; 50 50 struct max8952_platform_data *pdata; 51 51 struct regulator_dev *rdev; 52 52 ··· 206 208 max8952->client = client; 207 209 max8952->dev = &client->dev; 208 210 max8952->pdata = pdata; 209 - mutex_init(&max8952->mutex); 210 211 211 212 max8952->rdev = regulator_register(&regulator, max8952->dev, 212 213 &pdata->reg_data, max8952);