regulator: tps65090: fix compilation error
Laxman Dewangan [Thu, 23 Aug 2012 07:20:31 +0000 (12:20 +0530)]
The driver is pulled from the K3.1 kernel and when compiling
for K3.4 it is failing because the regulator_register() have more
number of argument.
Fixing the compilation error.

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

drivers/regulator/tps65090-regulator.c

index aca2f56..d982f16 100644 (file)
@@ -287,7 +287,7 @@ static int __devinit tps65090_regulator_probe(struct platform_device *pdev)
                        }
                }
                rdev = regulator_register(&ri->rinfo->desc, &pdev->dev,
-                               tps_pdata->reg_init_data, ri);
+                               tps_pdata->reg_init_data, ri, NULL);
                if (IS_ERR(rdev)) {
                        dev_err(&pdev->dev, "failed to register regulator %s\n",
                                ri->rinfo->desc.name);