All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: arizona-ldo1: Drop OF node reference on error path
@ 2015-02-20 16:08 Charles Keepax
  2015-02-20 16:08 ` [PATCH 2/2] regulator: arizona-micsupp: " Charles Keepax
  2015-02-21 14:30 ` [PATCH 1/2] regulator: arizona-ldo1: " Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Charles Keepax @ 2015-02-20 16:08 UTC (permalink / raw)
  To: broonie; +Cc: lgirdwood, linux-kernel, patches

We were not calling of_node_put if the regulator failed to register this
patch fixes this.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
 drivers/regulator/arizona-ldo1.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c
index 8169165..a1d07d3 100644
--- a/drivers/regulator/arizona-ldo1.c
+++ b/drivers/regulator/arizona-ldo1.c
@@ -282,6 +282,9 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
 		arizona->external_dcvdd = true;
 
 	ldo1->regulator = devm_regulator_register(&pdev->dev, desc, &config);
+
+	of_node_put(config.of_node);
+
 	if (IS_ERR(ldo1->regulator)) {
 		ret = PTR_ERR(ldo1->regulator);
 		dev_err(arizona->dev, "Failed to register LDO1 supply: %d\n",
@@ -289,8 +292,6 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	of_node_put(config.of_node);
-
 	platform_set_drvdata(pdev, ldo1);
 
 	return 0;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] regulator: arizona-micsupp: Drop OF node reference on error path
  2015-02-20 16:08 [PATCH 1/2] regulator: arizona-ldo1: Drop OF node reference on error path Charles Keepax
@ 2015-02-20 16:08 ` Charles Keepax
  2015-02-21 14:30   ` Mark Brown
  2015-02-21 14:30 ` [PATCH 1/2] regulator: arizona-ldo1: " Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Charles Keepax @ 2015-02-20 16:08 UTC (permalink / raw)
  To: broonie; +Cc: lgirdwood, linux-kernel, patches

We were not calling of_node_put if the regulator failed to register this
patch fixes this.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
 drivers/regulator/arizona-micsupp.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c
index 2007900..4116e74 100644
--- a/drivers/regulator/arizona-micsupp.c
+++ b/drivers/regulator/arizona-micsupp.c
@@ -284,6 +284,9 @@ static int arizona_micsupp_probe(struct platform_device *pdev)
 	micsupp->regulator = devm_regulator_register(&pdev->dev,
 						     desc,
 						     &config);
+
+	of_node_put(config.of_node);
+
 	if (IS_ERR(micsupp->regulator)) {
 		ret = PTR_ERR(micsupp->regulator);
 		dev_err(arizona->dev, "Failed to register mic supply: %d\n",
@@ -291,8 +294,6 @@ static int arizona_micsupp_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	of_node_put(config.of_node);
-
 	platform_set_drvdata(pdev, micsupp);
 
 	return 0;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] regulator: arizona-ldo1: Drop OF node reference on error path
  2015-02-20 16:08 [PATCH 1/2] regulator: arizona-ldo1: Drop OF node reference on error path Charles Keepax
  2015-02-20 16:08 ` [PATCH 2/2] regulator: arizona-micsupp: " Charles Keepax
@ 2015-02-21 14:30 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2015-02-21 14:30 UTC (permalink / raw)
  To: Charles Keepax; +Cc: lgirdwood, linux-kernel, patches

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

On Fri, Feb 20, 2015 at 04:08:43PM +0000, Charles Keepax wrote:
> We were not calling of_node_put if the regulator failed to register this
> patch fixes this.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] regulator: arizona-micsupp: Drop OF node reference on error path
  2015-02-20 16:08 ` [PATCH 2/2] regulator: arizona-micsupp: " Charles Keepax
@ 2015-02-21 14:30   ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2015-02-21 14:30 UTC (permalink / raw)
  To: Charles Keepax; +Cc: lgirdwood, linux-kernel, patches

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

On Fri, Feb 20, 2015 at 04:08:44PM +0000, Charles Keepax wrote:
> We were not calling of_node_put if the regulator failed to register this
> patch fixes this.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-21 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20 16:08 [PATCH 1/2] regulator: arizona-ldo1: Drop OF node reference on error path Charles Keepax
2015-02-20 16:08 ` [PATCH 2/2] regulator: arizona-micsupp: " Charles Keepax
2015-02-21 14:30   ` Mark Brown
2015-02-21 14:30 ` [PATCH 1/2] regulator: arizona-ldo1: " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.