Commit 96fa8c4b authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: tps80031: Remove redundant error message

kzalloc prints its own OOM message upon failure.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -693,10 +693,8 @@ static int tps80031_regulator_probe(struct platform_device *pdev) ...@@ -693,10 +693,8 @@ static int tps80031_regulator_probe(struct platform_device *pdev)
pmic = devm_kzalloc(&pdev->dev, pmic = devm_kzalloc(&pdev->dev,
TPS80031_REGULATOR_MAX * sizeof(*pmic), GFP_KERNEL); TPS80031_REGULATOR_MAX * sizeof(*pmic), GFP_KERNEL);
if (!pmic) { if (!pmic)
dev_err(&pdev->dev, "mem alloc for pmic failed\n");
return -ENOMEM; return -ENOMEM;
}
for (num = 0; num < TPS80031_REGULATOR_MAX; ++num) { for (num = 0; num < TPS80031_REGULATOR_MAX; ++num) {
tps_pdata = pdata->regulator_pdata[num]; tps_pdata = pdata->regulator_pdata[num];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment