From: MyungJoo Ham Date: Wed, 3 Aug 2011 00:58:03 +0000 (+0900) Subject: regulator: max8952: removed unused mutex. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dd32e11cdbc73e570f9fe7425fa820c97070a2c4;p=linux-beck.git 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 Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c index 486ed8141fcd..3883d85c5b88 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -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; @@ -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(®ulator, max8952->dev, &pdata->reg_data, max8952);