Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1332545 > unrolled thread

[patch] regulator: qcom-saw: testing the wrong variable

Started byDan Carpenter <dan.carpenter@oracle.com>
First post2016-02-12 07:50 +0100
Last post2016-02-12 07:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [patch] regulator: qcom-saw: testing the wrong variable Dan Carpenter <dan.carpenter@oracle.com> - 2016-02-12 07:50 +0100

#1332545 — [patch] regulator: qcom-saw: testing the wrong variable

FromDan Carpenter <dan.carpenter@oracle.com>
Date2016-02-12 07:50 +0100
Subject[patch] regulator: qcom-saw: testing the wrong variable
Message-ID<r1fId-3jp-1@gated-at.bofh.it>
We accidentally test "config.regmap" which is zero instead of
"vreg->regmap".

Fixes: 18bba3b50355 ('regulator: qcom-saw: Add support for SAW regulators')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/regulator/qcom_saw-regulator.c b/drivers/regulator/qcom_saw-regulator.c
index c800f16..c00f0df 100644
--- a/drivers/regulator/qcom_saw-regulator.c
+++ b/drivers/regulator/qcom_saw-regulator.c
@@ -186,8 +186,8 @@ static int qcom_saw_regulator_probe(struct platform_device *pdev)
 
 	vreg->regmap = syscon_node_to_regmap(saw_np);
 	of_node_put(saw_np);
-	if (IS_ERR(config.regmap))
-		return PTR_ERR(config.regmap);
+	if (IS_ERR(vreg->regmap))
+		return PTR_ERR(vreg->regmap);
 
 	snprintf(name, sizeof(name), "krait%d", cpu);
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web