From: Haojian Zhuang Date: Fri, 6 May 2011 09:21:25 +0000 (+0800) Subject: mfd: Remove checking on max8925 regulator[0] X-Git-Tag: MMI-PSA29.97-13-9~19445^2~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebf9988ecad6727e5ae950fc2c72b963a1bfc0fe;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Reviewed-by: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.c index 58cc5fdde016..e1e59c92f758 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, ®ulator_devs[0], ARRAY_SIZE(regulator_devs), ®ulator_resources[0], 0);