diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-20 03:53:14 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-20 06:53:09 -0500 |
commit | fe23ce0813e64064b8b60d2f47c81b066e579838 (patch) | |
tree | 6cb217239ecc0b376cd18e8eadcace55454a1386 | |
parent | aaacb0e9e66f644a0291082263455c6aafab0e9d (diff) |
regulator: tps6507x: 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/tps6507x-regulator.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index e506e7f54253..98e66ce26723 100644 --- a/drivers/regulator/tps6507x-regulator.c +++ b/drivers/regulator/tps6507x-regulator.c | |||
@@ -380,10 +380,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data( | |||
380 | 380 | ||
381 | tps_board = devm_kzalloc(&pdev->dev, sizeof(*tps_board), | 381 | tps_board = devm_kzalloc(&pdev->dev, sizeof(*tps_board), |
382 | GFP_KERNEL); | 382 | GFP_KERNEL); |
383 | if (!tps_board) { | 383 | if (!tps_board) |
384 | dev_err(&pdev->dev, "Failure to alloc pdata for regulators.\n"); | ||
385 | return NULL; | 384 | return NULL; |
386 | } | ||
387 | 385 | ||
388 | regulators = of_get_child_by_name(np, "regulators"); | 386 | regulators = of_get_child_by_name(np, "regulators"); |
389 | if (!regulators) { | 387 | if (!regulators) { |
@@ -406,10 +404,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data( | |||
406 | 404 | ||
407 | reg_data = devm_kzalloc(&pdev->dev, (sizeof(struct regulator_init_data) | 405 | reg_data = devm_kzalloc(&pdev->dev, (sizeof(struct regulator_init_data) |
408 | * TPS6507X_NUM_REGULATOR), GFP_KERNEL); | 406 | * TPS6507X_NUM_REGULATOR), GFP_KERNEL); |
409 | if (!reg_data) { | 407 | if (!reg_data) |
410 | dev_err(&pdev->dev, "Failure to alloc init data for regulators.\n"); | ||
411 | return NULL; | 408 | return NULL; |
412 | } | ||
413 | 409 | ||
414 | tps_board->tps6507x_pmic_init_data = reg_data; | 410 | tps_board->tps6507x_pmic_init_data = reg_data; |
415 | 411 | ||