mfd: Remove checking on max8925 regulator[0]
authorHaojian Zhuang <haojian.zhuang@marvell.com>
Fri, 6 May 2011 09:21:25 +0000 (17:21 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 26 May 2011 17:45:37 +0000 (19:45 +0200)
Since regulator[0] is always checking in mfd driver, it results in
registration failure without regulator[0].

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/max8925-core.c

index 58cc5fdde01647be4260f4736a55596d5c684242..e1e59c92f7588592e141839f2af5c0c4298d53d5 100644 (file)
@@ -627,7 +627,7 @@ int __devinit max8925_device_init(struct max8925_chip *chip,
                goto out_dev;
        }
 
-       if (pdata && pdata->regulator[0]) {
+       if (pdata) {
                ret = mfd_add_devices(chip->dev, 0, &regulator_devs[0],
                                      ARRAY_SIZE(regulator_devs),
                                      &regulator_resources[0], 0);