summaryrefslogtreecommitdiff
path: root/drivers/regulator/max77686.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-20 12:53:06 +0400
committerMark Brown <broonie@linaro.org>2014-02-20 15:21:47 +0400
commit7c2ee82c1620945b6d919c99e40230eef62da919 (patch)
treeefafcc0d130e6817dc56aa3506ebdc87aae97dbf /drivers/regulator/max77686.c
parentda0ee72d6df88e5cf6eb1a8f3bd02c3af3613337 (diff)
downloadlinux-7c2ee82c1620945b6d919c99e40230eef62da919.tar.xz
regulator: max77686: 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>
Diffstat (limited to 'drivers/regulator/max77686.c')
-rw-r--r--drivers/regulator/max77686.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index b411af00065d..de020adf0568 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -410,8 +410,6 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev,
rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
pdata->num_regulators, GFP_KERNEL);
if (!rdata) {
- dev_err(&pdev->dev,
- "could not allocate memory for regulator data\n");
of_node_put(regulators_np);
return -ENOMEM;
}