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>
This commit is contained in:
parent
cea438dda6
commit
ebf9988eca
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue