mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
regulator: qcom_spmi: Use correct regmap when checking for error
[ Upstream commit85046a1552] 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:0caecaa872("regulator: qcom_spmi: Add support for SAW") Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4a5dfbca3e
commit
9611efe670
@@ -1774,7 +1774,7 @@ static int qcom_spmi_regulator_probe(struct platform_device *pdev)
|
||||
syscon = of_parse_phandle(node, "qcom,saw-reg", 0);
|
||||
saw_regmap = syscon_node_to_regmap(syscon);
|
||||
of_node_put(syscon);
|
||||
if (IS_ERR(regmap))
|
||||
if (IS_ERR(saw_regmap))
|
||||
dev_err(dev, "ERROR reading SAW regmap\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user