regulator: tps62360: Remove extra argument in regulator_register
Laxman Dewangan [Wed, 25 Jan 2012 14:13:27 +0000 (19:13 +0530)]
As this dirver is back ported from kernel mainline, the function
regulator_register() have one extra argument.
Removing this extra argument.

Change-Id: I615f995184e4908c399b9ccc91e090e49f10aec3

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

drivers/regulator/tps62360-regulator.c

index f778ef0..7eaf082 100644 (file)
@@ -378,7 +378,7 @@ static int __devinit tps62360_probe(struct i2c_client *client,
 
        /* Register the regulators */
        rdev = regulator_register(&tps->desc, &client->dev,
-                               &pdata->reg_init_data, tps, NULL);
+                               &pdata->reg_init_data, tps);
        if (IS_ERR(rdev)) {
                dev_err(tps->dev, "%s() Err: Failed to register %s\n",
                                __func__, id->name);