summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max14577.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-02-23 17:37:25 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-02-23 17:37:25 -0800
commit24c852584066341dc99b738ebf85369f1f7ee335 (patch)
tree94cb773024d3881f594202998431975421116aeb /drivers/regulator/max14577.c
parentb2880eb83d58334664f1326dbc47fbe574783077 (diff)
parentbcad2ca37296ab6c09de7975e850cb8f90c44c08 (diff)
Merge tag 'regulator-v3.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown: "Mostly unexciting driver fixes, plus one fix to lower the severity of the log message when we don't use an optional regulator - the fixes for ACPI system made this come up more often and it was correctly observed that it was causing undue concern for users" * tag 'regulator-v3.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: max14577: Fix invalid return value on DT parse success regulator: core: Change dummy supplies error message to a warning regulator: s5m8767: Add missing of_node_put regulator: s5m8767: Use of_get_child_by_name regulator: da9063: Bug fix when setting max voltage on LDOs 5-11
Diffstat (limited to 'drivers/regulator/max14577.c')
-rw-r--r--drivers/regulator/max14577.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/regulator/max14577.c b/drivers/regulator/max14577.c
index 186df8785a9..e0619526708 100644
--- a/drivers/regulator/max14577.c
+++ b/drivers/regulator/max14577.c
@@ -166,9 +166,10 @@ static int max14577_regulator_dt_parse_pdata(struct platform_device *pdev)
ret = of_regulator_match(&pdev->dev, np, max14577_regulator_matches,
MAX14577_REG_MAX);
- if (ret < 0) {
+ if (ret < 0)
dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret);
- }
+ else
+ ret = 0;
of_node_put(np);