Commit fe23ce08 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: tps6507x: Remove redundant error message

kzalloc prints its own OOM message upon failure.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent aaacb0e9
...@@ -380,10 +380,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data( ...@@ -380,10 +380,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data(
tps_board = devm_kzalloc(&pdev->dev, sizeof(*tps_board), tps_board = devm_kzalloc(&pdev->dev, sizeof(*tps_board),
GFP_KERNEL); GFP_KERNEL);
if (!tps_board) { if (!tps_board)
dev_err(&pdev->dev, "Failure to alloc pdata for regulators.\n");
return NULL; return NULL;
}
regulators = of_get_child_by_name(np, "regulators"); regulators = of_get_child_by_name(np, "regulators");
if (!regulators) { if (!regulators) {
...@@ -406,10 +404,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data( ...@@ -406,10 +404,8 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data(
reg_data = devm_kzalloc(&pdev->dev, (sizeof(struct regulator_init_data) reg_data = devm_kzalloc(&pdev->dev, (sizeof(struct regulator_init_data)
* TPS6507X_NUM_REGULATOR), GFP_KERNEL); * TPS6507X_NUM_REGULATOR), GFP_KERNEL);
if (!reg_data) { if (!reg_data)
dev_err(&pdev->dev, "Failure to alloc init data for regulators.\n");
return NULL; return NULL;
}
tps_board->tps6507x_pmic_init_data = reg_data; tps_board->tps6507x_pmic_init_data = reg_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment