aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/act8865-regulator.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c
index 89f856f257f7..69cdad0f71ba 100644
--- a/drivers/regulator/act8865-regulator.c
+++ b/drivers/regulator/act8865-regulator.c
@@ -485,12 +485,6 @@ static int act8865_pmic_probe(struct i2c_client *client,
485 pdata = &pdata_of; 485 pdata = &pdata_of;
486 } 486 }
487 487
488 if (pdata->num_regulators > num_regulators) {
489 dev_err(dev, "too many regulators: %d\n",
490 pdata->num_regulators);
491 return -EINVAL;
492 }
493
494 act8865 = devm_kzalloc(dev, sizeof(struct act8865), GFP_KERNEL); 488 act8865 = devm_kzalloc(dev, sizeof(struct act8865), GFP_KERNEL);
495 if (!act8865) 489 if (!act8865)
496 return -ENOMEM; 490 return -ENOMEM;