X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmfd%2Fmax8925-core.c;h=e1e59c92f7588592e141839f2af5c0c4298d53d5;hb=fce637e392a762e4d4f0fc41ac3d3f557187ac21;hp=58cc5fdde01647be4260f4736a55596d5c684242;hpb=3a80e52486eff1221ece5902b423da59f263069d;p=pandora-kernel.git 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);