mfd: tps65090: remove unused member from tps65090 structure
Laxman Dewangan [Thu, 2 Aug 2012 15:06:05 +0000 (20:06 +0530)]
The structure tps65090 have member as "client", "lock", "id"
which is no more required.
Removing this member from structure.

Change-Id: I18e64c77caeaa0e9c4a23bbb3cd1a6b3419e36d4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120844

drivers/mfd/tps65090.c
include/linux/mfd/tps65090.h

index ec60ac7..1741664 100644 (file)
@@ -230,12 +230,9 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
        if (tps65090 == NULL)
                return -ENOMEM;
 
-       tps65090->client = client;
        tps65090->dev = &client->dev;
        i2c_set_clientdata(client, tps65090);
 
-       mutex_init(&tps65090->lock);
-
        if (client->irq) {
                ret = tps65090_irq_init(tps65090, client->irq, pdata->irq_base);
                if (ret) {
@@ -245,8 +242,7 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
                }
        }
 
-       tps65090->rmap = devm_regmap_init_i2c(tps65090->client,
-                                             &tps65090_regmap_config);
+       tps65090->rmap = devm_regmap_init_i2c(client, &tps65090_regmap_config);
        if (IS_ERR(tps65090->rmap)) {
                ret = PTR_ERR(tps65090->rmap);
                dev_err(&client->dev, "regmap_init failed with err: %d\n", ret);
index ba6b80a..7ae86b9 100644 (file)
 #include <linux/regmap.h>
 
 struct tps65090 {
-       struct mutex            lock;
        struct device           *dev;
-       struct i2c_client       *client;
        struct regmap           *rmap;
        struct irq_chip         irq_chip;
        struct mutex            irq_lock;
        int                     irq_base;
-       unsigned int            id;
 };
 
 struct tps65090_platform_data {