summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2011-05-06 17:21:25 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 19:45:37 +0200
commitebf9988ecad6727e5ae950fc2c72b963a1bfc0fe (patch)
treee9dc9e5b394c181c9e484a9509c3ba88223cb91d
parentcea438dda618797922d0bfc4814e832bab19ac19 (diff)
downloadlinux-3.10-ebf9988ecad6727e5ae950fc2c72b963a1bfc0fe.tar.gz
linux-3.10-ebf9988ecad6727e5ae950fc2c72b963a1bfc0fe.tar.bz2
linux-3.10-ebf9988ecad6727e5ae950fc2c72b963a1bfc0fe.zip
mfd: Remove checking on max8925 regulator[0]
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>
-rw-r--r--drivers/mfd/max8925-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.c
index 58cc5fdde01..e1e59c92f75 100644
--- a/drivers/mfd/max8925-core.c
+++ b/drivers/mfd/max8925-core.c
@@ -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);