diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-20 03:53:22 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-20 07:03:17 -0500 |
commit | fae3b83645ec37b4f274b0bb9c602152ae10ece5 (patch) | |
tree | d6ebf1cc146e30663c4aa40c9ad56c520188702e /drivers/regulator | |
parent | d718debcdb4478552a7ca26fd7e1c0d06d82b8ab (diff) |
regulator: wm831x-ldo: 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/wm831x-ldo.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c index 46d6700467b5..eca0eeb78acd 100644 --- a/drivers/regulator/wm831x-ldo.c +++ b/drivers/regulator/wm831x-ldo.c | |||
@@ -235,10 +235,8 @@ static int wm831x_gp_ldo_probe(struct platform_device *pdev) | |||
235 | dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); | 235 | dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); |
236 | 236 | ||
237 | ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL); | 237 | ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL); |
238 | if (ldo == NULL) { | 238 | if (!ldo) |
239 | dev_err(&pdev->dev, "Unable to allocate private data\n"); | ||
240 | return -ENOMEM; | 239 | return -ENOMEM; |
241 | } | ||
242 | 240 | ||
243 | ldo->wm831x = wm831x; | 241 | ldo->wm831x = wm831x; |
244 | 242 | ||
@@ -447,10 +445,8 @@ static int wm831x_aldo_probe(struct platform_device *pdev) | |||
447 | dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); | 445 | dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); |
448 | 446 | ||
449 | ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL); | 447 | ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL); |
450 | if (ldo == NULL) { | 448 | if (!ldo) |
451 | dev_err(&pdev->dev, "Unable to allocate private data\n"); | ||
452 | return -ENOMEM; | 449 | return -ENOMEM; |
453 | } | ||
454 | 450 | ||
455 | ldo->wm831x = wm831x; | 451 | ldo->wm831x = wm831x; |
456 | 452 | ||
@@ -594,10 +590,8 @@ static int wm831x_alive_ldo_probe(struct platform_device *pdev) | |||
594 | dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); | 590 | dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); |
595 | 591 | ||
596 | ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL); | 592 | ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_ldo), GFP_KERNEL); |
597 | if (ldo == NULL) { | 593 | if (!ldo) |
598 | dev_err(&pdev->dev, "Unable to allocate private data\n"); | ||
599 | return -ENOMEM; | 594 | return -ENOMEM; |
600 | } | ||
601 | 595 | ||
602 | ldo->wm831x = wm831x; | 596 | ldo->wm831x = wm831x; |
603 | 597 | ||