diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-18 05:41:11 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-19 11:38:41 -0500 |
commit | 31833581de5a4bd2f087c361f757865d1d12f23d (patch) | |
tree | 3035580466c5b83ae5af8546d7d51aedb8906468 | |
parent | eecb02c003e42d604a15b59d57c0ec9417293257 (diff) |
regulator: as3711: 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>
-rw-r--r-- | drivers/regulator/as3711-regulator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/as3711-regulator.c b/drivers/regulator/as3711-regulator.c index 856c55f3a832..b47283f91e2d 100644 --- a/drivers/regulator/as3711-regulator.c +++ b/drivers/regulator/as3711-regulator.c | |||
@@ -245,10 +245,8 @@ static int as3711_regulator_probe(struct platform_device *pdev) | |||
245 | 245 | ||
246 | regs = devm_kzalloc(&pdev->dev, AS3711_REGULATOR_NUM * | 246 | regs = devm_kzalloc(&pdev->dev, AS3711_REGULATOR_NUM * |
247 | sizeof(struct as3711_regulator), GFP_KERNEL); | 247 | sizeof(struct as3711_regulator), GFP_KERNEL); |
248 | if (!regs) { | 248 | if (!regs) |
249 | dev_err(&pdev->dev, "Memory allocation failed exiting..\n"); | ||
250 | return -ENOMEM; | 249 | return -ENOMEM; |
251 | } | ||
252 | 250 | ||
253 | for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) { | 251 | for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) { |
254 | reg = ®s[id]; | 252 | reg = ®s[id]; |