regulator: s5m8767: 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:
parent
3471c1224c
commit
4754b4211d
@ -612,19 +612,13 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev,
|
|||||||
|
|
||||||
rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
|
rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
|
||||||
pdata->num_regulators, GFP_KERNEL);
|
pdata->num_regulators, GFP_KERNEL);
|
||||||
if (!rdata) {
|
if (!rdata)
|
||||||
dev_err(iodev->dev,
|
|
||||||
"could not allocate memory for regulator data\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) *
|
rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) *
|
||||||
pdata->num_regulators, GFP_KERNEL);
|
pdata->num_regulators, GFP_KERNEL);
|
||||||
if (!rmode) {
|
if (!rmode)
|
||||||
dev_err(iodev->dev,
|
|
||||||
"could not allocate memory for regulator mode\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
pdata->regulators = rdata;
|
pdata->regulators = rdata;
|
||||||
pdata->opmode = rmode;
|
pdata->opmode = rmode;
|
||||||
|
Loading…
Reference in New Issue
Block a user