diff options
Diffstat (limited to 'drivers/regulator/max14577.c')
| -rw-r--r-- | drivers/regulator/max14577.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/regulator/max14577.c b/drivers/regulator/max14577.c index b1078ba3f393..e0619526708c 100644 --- a/drivers/regulator/max14577.c +++ b/drivers/regulator/max14577.c | |||
| @@ -166,12 +166,14 @@ static int max14577_regulator_dt_parse_pdata(struct platform_device *pdev) | |||
| 166 | 166 | ||
| 167 | ret = of_regulator_match(&pdev->dev, np, max14577_regulator_matches, | 167 | ret = of_regulator_match(&pdev->dev, np, max14577_regulator_matches, |
| 168 | MAX14577_REG_MAX); | 168 | MAX14577_REG_MAX); |
| 169 | if (ret < 0) { | 169 | if (ret < 0) |
| 170 | dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret); | 170 | dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret); |
| 171 | return ret; | 171 | else |
| 172 | } | 172 | ret = 0; |
| 173 | 173 | ||
| 174 | return 0; | 174 | of_node_put(np); |
| 175 | |||
| 176 | return ret; | ||
| 175 | } | 177 | } |
| 176 | 178 | ||
| 177 | static inline struct regulator_init_data *match_init_data(int index) | 179 | static inline struct regulator_init_data *match_init_data(int index) |
