fixup: regulator_register (max8907c-regulator.c)
Dan Willemsen [Mon, 26 Mar 2012 07:25:30 +0000 (00:25 -0700)]
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

drivers/regulator/max8907c-regulator.c

index 925f161..2982568 100644 (file)
@@ -370,8 +370,8 @@ static int max8907c_regulator_probe(struct platform_device *pdev)
        info = &max8907c_regulators[pdev->id];
        info->i2c = max8907c->i2c_power;
 
-       rdev = regulator_register(&info->desc,
-                                 &pdev->dev, pdev->dev.platform_data, info);
+       rdev = regulator_register(&info->desc, &pdev->dev,
+                               pdev->dev.platform_data, info, NULL);
        if (IS_ERR(rdev)) {
                dev_err(&pdev->dev, "Cannot register regulator \"%s\", %ld\n",
                        info->desc.name, PTR_ERR(rdev));