regulator: max8997: Remove redundant error message
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:09 +0000 (14:23 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 11:24:59 +0000 (20:24 +0900)
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>
drivers/regulator/max8997.c

index 10108f2..f657d8d 100644 (file)
@@ -937,7 +937,6 @@ static int max8997_pmic_dt_parse_pdata(struct platform_device *pdev,
                                pdata->num_regulators, GFP_KERNEL);
        if (!rdata) {
                of_node_put(regulators_np);
-               dev_err(&pdev->dev, "could not allocate memory for regulator data\n");
                return -ENOMEM;
        }