diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-20 03:53:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-20 05:57:19 -0500 |
commit | 8b5baa56f27369af57a755e364d02c02efed611b (patch) | |
tree | fc688e668faf8ed124bee05660be989ca402006a | |
parent | 8a7963d55b58aa95f45928dec229380c28d921ed (diff) |
regulator: da9063: Remove redundant error message
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/regulator/da9063-regulator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index 3c65644f3007..4c09f759d05d 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c | |||
@@ -774,10 +774,8 @@ static int da9063_regulator_probe(struct platform_device *pdev) | |||
774 | size = sizeof(struct da9063_regulators) + | 774 | size = sizeof(struct da9063_regulators) + |
775 | n_regulators * sizeof(struct da9063_regulator); | 775 | n_regulators * sizeof(struct da9063_regulator); |
776 | regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); | 776 | regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); |
777 | if (!regulators) { | 777 | if (!regulators) |
778 | dev_err(&pdev->dev, "No memory for regulators\n"); | ||
779 | return -ENOMEM; | 778 | return -ENOMEM; |
780 | } | ||
781 | 779 | ||
782 | regulators->n_regulators = n_regulators; | 780 | regulators->n_regulators = n_regulators; |
783 | platform_set_drvdata(pdev, regulators); | 781 | platform_set_drvdata(pdev, regulators); |