diff options
| author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-18 05:41:07 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-02-19 11:34:38 -0500 |
| commit | 001f004ba71f5b405e67b52ecf29322dbfbcc47b (patch) | |
| tree | 9afd62c74b1f673cc2c6e08742b1838ff8787984 | |
| parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
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>
| -rw-r--r-- | drivers/regulator/88pm800.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/88pm800.c b/drivers/regulator/88pm800.c index d333f7eac106..7a721d67e6ac 100644 --- a/drivers/regulator/88pm800.c +++ b/drivers/regulator/88pm800.c | |||
| @@ -310,10 +310,8 @@ static int pm800_regulator_probe(struct platform_device *pdev) | |||
| 310 | 310 | ||
| 311 | pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data), | 311 | pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data), |
| 312 | GFP_KERNEL); | 312 | GFP_KERNEL); |
| 313 | if (!pm800_data) { | 313 | if (!pm800_data) |
| 314 | dev_err(&pdev->dev, "Failed to allocate pm800_regualtors"); | ||
| 315 | return -ENOMEM; | 314 | return -ENOMEM; |
| 316 | } | ||
| 317 | 315 | ||
| 318 | pm800_data->map = chip->subchip->regmap_power; | 316 | pm800_data->map = chip->subchip->regmap_power; |
| 319 | pm800_data->chip = chip; | 317 | pm800_data->chip = chip; |
