regulator: 88pm800: 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>
This commit is contained in:
Родитель
38dbfb59d1
Коммит
001f004ba7
|
@ -310,10 +310,8 @@ static int pm800_regulator_probe(struct platform_device *pdev)
|
|||
|
||||
pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data),
|
||||
GFP_KERNEL);
|
||||
if (!pm800_data) {
|
||||
dev_err(&pdev->dev, "Failed to allocate pm800_regualtors");
|
||||
if (!pm800_data)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
pm800_data->map = chip->subchip->regmap_power;
|
||||
pm800_data->chip = chip;
|
||||
|
|
Загрузка…
Ссылка в новой задаче