summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-20 14:23:11 +0530
committerMark Brown <broonie@linaro.org>2014-02-20 20:49:06 +0900
commit4754b4211ddc9e6ebec97b0088a1c0ecb558f780 (patch)
tree5cb8fe18784629e67a044653563c0efb9708d0d6 /drivers/regulator
parent3471c1224cb5f543b617e2d14000db1fcf71924b (diff)
downloadop-kernel-dev-4754b4211ddc9e6ebec97b0088a1c0ecb558f780.zip
op-kernel-dev-4754b4211ddc9e6ebec97b0088a1c0ecb558f780.tar.gz
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/s5m8767.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c
index 6850a25..6884eb8 100644
--- a/drivers/regulator/s5m8767.c
+++ b/drivers/regulator/s5m8767.c
@@ -612,19 +612,13 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev,
rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
pdata->num_regulators, GFP_KERNEL);
- if (!rdata) {
- dev_err(iodev->dev,
- "could not allocate memory for regulator data\n");
+ if (!rdata)
return -ENOMEM;
- }
rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) *
pdata->num_regulators, GFP_KERNEL);
- if (!rmode) {
- dev_err(iodev->dev,
- "could not allocate memory for regulator mode\n");
+ if (!rmode)
return -ENOMEM;
- }
pdata->regulators = rdata;
pdata->opmode = rmode;
OpenPOWER on IntegriCloud