Skip to content

Commit

Permalink
regulator: max8952: removed unused mutex.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MyungJoo Ham authored and Liam Girdwood committed Aug 8, 2011
1 parent 84f8508 commit dd32e11
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/regulator/max8952.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/max8952.h>
#include <linux/mutex.h>
#include <linux/gpio.h>
#include <linux/io.h>
#include <linux/slab.h>
Expand All @@ -47,7 +46,6 @@ enum {
struct max8952_data {
struct i2c_client *client;
struct device *dev;
struct mutex mutex;
struct max8952_platform_data *pdata;
struct regulator_dev *rdev;

Expand Down Expand Up @@ -208,7 +206,6 @@ static int __devinit max8952_pmic_probe(struct i2c_client *client,
max8952->client = client;
max8952->dev = &client->dev;
max8952->pdata = pdata;
mutex_init(&max8952->mutex);

max8952->rdev = regulator_register(&regulator, max8952->dev,
&pdata->reg_data, max8952);
Expand Down

0 comments on commit dd32e11

Please sign in to comment.