Commit 001f004b authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: 88pm800: 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
...@@ -310,10 +310,8 @@ static int pm800_regulator_probe(struct platform_device *pdev) ...@@ -310,10 +310,8 @@ static int pm800_regulator_probe(struct platform_device *pdev)
pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data), pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data),
GFP_KERNEL); GFP_KERNEL);
if (!pm800_data) { if (!pm800_data)
dev_err(&pdev->dev, "Failed to allocate pm800_regualtors");
return -ENOMEM; return -ENOMEM;
}
pm800_data->map = chip->subchip->regmap_power; pm800_data->map = chip->subchip->regmap_power;
pm800_data->chip = chip; pm800_data->chip = chip;
......
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