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


Groups > linux.kernel > #1331693

[PATCH 1/2] regulator: qcom_saw: Fix testing wrong value

From Axel Lin <axel.lin@ingics.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] regulator: qcom_saw: Fix testing wrong value
Date 2016-02-11 06:00 +0100
Message-ID <r0Rwe-3Nq-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/qcom_saw-regulator.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
 
-- 
2.1.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] regulator: qcom_saw: Fix testing wrong value Axel Lin <axel.lin@ingics.com> - 2016-02-11 06:00 +0100
  [PATCH 2/2] regulator: qcom_saw: Fix uninitialized variable build  warning Axel Lin <axel.lin@ingics.com> - 2016-02-11 06:00 +0100
  Re: [PATCH 1/2] regulator: qcom_saw: Fix testing wrong value Mark Brown <broonie@kernel.org> - 2016-02-20 18:40 +0100

csiph-web