diff options
author | Niklas Cassel <niklas.cassel@linaro.org> | 2018-07-16 09:32:52 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-20 12:40:50 -0400 |
commit | 85046a15529606466bc778e1205f4cab8e3724d1 (patch) | |
tree | 5d341fb42a7609bbe30db64523f3487289880c33 | |
parent | fffe7f52eb5db41eedadba9a8038e982dcfaee0c (diff) |
regulator: qcom_spmi: Use correct regmap when checking for error
Since we have just assigned saw_regmap, and since the error message
refers to saw_regmap, it feels safe to assume that it is saw_regmap,
and not regmap, that should be checked for errors.
Fixes: 0caecaa87202 ("regulator: qcom_spmi: Add support for SAW")
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/qcom_spmi-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index 4cc14c65d86b..ba3d5e63ada6 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c | |||
@@ -1775,7 +1775,7 @@ static int qcom_spmi_regulator_probe(struct platform_device *pdev) | |||
1775 | syscon = of_parse_phandle(node, "qcom,saw-reg", 0); | 1775 | syscon = of_parse_phandle(node, "qcom,saw-reg", 0); |
1776 | saw_regmap = syscon_node_to_regmap(syscon); | 1776 | saw_regmap = syscon_node_to_regmap(syscon); |
1777 | of_node_put(syscon); | 1777 | of_node_put(syscon); |
1778 | if (IS_ERR(regmap)) | 1778 | if (IS_ERR(saw_regmap)) |
1779 | dev_err(dev, "ERROR reading SAW regmap\n"); | 1779 | dev_err(dev, "ERROR reading SAW regmap\n"); |
1780 | } | 1780 | } |
1781 | 1781 | ||