mfd: tps65090: Remove unused member of struct tps65090
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 20 Nov 2012 03:14:47 +0000 (08:44 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 21 Nov 2012 15:07:52 +0000 (16:07 +0100)
Remove unused member from tps65090 data structure as
these are not used.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps65090.c
include/linux/mfd/tps65090.h

index f95f7f6..3cfc9dc 100644 (file)
@@ -269,12 +269,9 @@ static int __devinit tps65090_i2c_probe(struct i2c_client *client,
                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) {
@@ -284,8 +281,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 6bc31d8..6c57622 100644 (file)
 #include <linux/irq.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_subdev_info {
-       int             id;
-       const char      *name;
-       void            *platform_data;
 };
 
 struct tps65090_platform_data {
        int irq_base;
-       int num_subdevs;
-       struct tps65090_subdev_info *subdevs;
 };
 
 /*