aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 9fa20957847d..a2dc6223e8d2 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -2565,8 +2565,11 @@ struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
2565 init_data->consumer_supplies[i].dev, 2565 init_data->consumer_supplies[i].dev,
2566 init_data->consumer_supplies[i].dev_name, 2566 init_data->consumer_supplies[i].dev_name,
2567 init_data->consumer_supplies[i].supply); 2567 init_data->consumer_supplies[i].supply);
2568 if (ret < 0) 2568 if (ret < 0) {
2569 dev_err(dev, "Failed to set supply %s\n",
2570 init_data->consumer_supplies[i].supply);
2569 goto unset_supplies; 2571 goto unset_supplies;
2572 }
2570 } 2573 }
2571 2574
2572 list_add(&rdev->list, &regulator_list); 2575 list_add(&rdev->list, &regulator_list);