Commit dd32e11c authored by MyungJoo Ham's avatar MyungJoo Ham Committed by Liam Girdwood

regulator: max8952: removed unused mutex.

This patch removes a mutex that is never used in the driver.

Reported-by: Axel Lin
Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 84f8508a
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/regulator/driver.h> #include <linux/regulator/driver.h>
#include <linux/regulator/max8952.h> #include <linux/regulator/max8952.h>
#include <linux/mutex.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/slab.h> #include <linux/slab.h>
...@@ -47,7 +46,6 @@ enum { ...@@ -47,7 +46,6 @@ enum {
struct max8952_data { struct max8952_data {
struct i2c_client *client; struct i2c_client *client;
struct device *dev; struct device *dev;
struct mutex mutex;
struct max8952_platform_data *pdata; struct max8952_platform_data *pdata;
struct regulator_dev *rdev; struct regulator_dev *rdev;
...@@ -208,7 +206,6 @@ static int __devinit max8952_pmic_probe(struct i2c_client *client, ...@@ -208,7 +206,6 @@ static int __devinit max8952_pmic_probe(struct i2c_client *client,
max8952->client = client; max8952->client = client;
max8952->dev = &client->dev; max8952->dev = &client->dev;
max8952->pdata = pdata; max8952->pdata = pdata;
mutex_init(&max8952->mutex);
max8952->rdev = regulator_register(&regulator, max8952->dev, max8952->rdev = regulator_register(&regulator, max8952->dev,
&pdata->reg_data, max8952); &pdata->reg_data, max8952);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment