Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/act8865-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c
index c9f98b061307..2d2c3b004ab7 100644
--- a/drivers/regulator/act8865-regulator.c
+++ b/drivers/regulator/act8865-regulator.c
@@ -221,6 +221,7 @@ static int act8865_pdata_from_dt(struct device *dev,
matched = of_regulator_match(dev, np,
act8865_matches, ARRAY_SIZE(act8865_matches));
+ of_node_put(np);
if (matched <= 0)
return matched;
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/max77686.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index 0e725f6ed455..b411af00065d 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -412,6 +412,7 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev,
if (!rdata) {
dev_err(&pdev->dev,
"could not allocate memory for regulator data\n");
+ of_node_put(regulators_np);
return -ENOMEM;
}
@@ -425,6 +426,7 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev,
}
pdata->regulators = rdata;
+ of_node_put(regulators_np);
return 0;
}
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/max8660.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c
index 70351abbd1e9..61ecd0892637 100644
--- a/drivers/regulator/max8660.c
+++ b/drivers/regulator/max8660.c
@@ -340,6 +340,7 @@ static int max8660_pdata_from_dt(struct device *dev,
rmatch[i].name = max8660_reg[i].name;
matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch));
+ of_node_put(np);
if (matched <= 0)
return matched;
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/tps6507x-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index 5a558dad27e3..e506e7f54253 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -395,6 +395,7 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data(
matches = tps6507x_matches;
ret = of_regulator_match(&pdev->dev, regulators, matches, count);
+ of_node_put(regulators);
if (ret < 0) {
dev_err(&pdev->dev, "Error parsing regulator init data: %d\n",
ret);
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/tps65090-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c
index 676f75548f00..5674f886c471 100644
--- a/drivers/regulator/tps65090-regulator.c
+++ b/drivers/regulator/tps65090-regulator.c
@@ -188,6 +188,7 @@ static struct tps65090_platform_data *tps65090_parse_dt_reg_data(
ret = of_regulator_match(&pdev->dev, regulators, tps65090_matches,
ARRAY_SIZE(tps65090_matches));
+ of_node_put(regulators);
if (ret < 0) {
dev_err(&pdev->dev,
"Error parsing regulator init data: %d\n", ret);
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/max8998.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c
index ae3f0656feb0..ce22d4f3f3eb 100644
--- a/drivers/regulator/max8998.c
+++ b/drivers/regulator/max8998.c
@@ -674,8 +674,10 @@ static int max8998_pmic_dt_parse_pdata(struct max8998_dev *iodev,
rdata = devm_kzalloc(iodev->dev, sizeof(*rdata) *
pdata->num_regulators, GFP_KERNEL);
- if (!rdata)
+ if (!rdata) {
+ of_node_put(regulators_np);
return -ENOMEM;
+ }
pdata->regulators = rdata;
for (i = 0; i < ARRAY_SIZE(regulators); ++i) {
@@ -692,6 +694,9 @@ static int max8998_pmic_dt_parse_pdata(struct max8998_dev *iodev,
}
pdata->num_regulators = rdata - pdata->regulators;
+ of_node_put(reg_np);
+ of_node_put(regulators_np);
+
ret = max8998_pmic_dt_parse_dvs_gpio(iodev, pdata, pmic_np);
if (ret)
return -EINVAL;
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/max77693.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c
index 057d040e6feb..d6807fd7eadc 100644
--- a/drivers/regulator/max77693.c
+++ b/drivers/regulator/max77693.c
@@ -176,13 +176,16 @@ static int max77693_pmic_dt_parse_rdata(struct device *dev,
rmatch = devm_kzalloc(dev,
sizeof(*rmatch) * ARRAY_SIZE(regulators), GFP_KERNEL);
- if (!rmatch)
+ if (!rmatch) {
+ of_node_put(np);
return -ENOMEM;
+ }
for (i = 0; i < ARRAY_SIZE(regulators); i++)
rmatch[i].name = regulators[i].name;
matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(regulators));
+ of_node_put(np);
if (matched <= 0)
return matched;
*rdata = devm_kzalloc(dev, sizeof(**rdata) * matched, GFP_KERNEL);
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/as3722-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c
index 8b17d786cb71..85585219ce82 100644
--- a/drivers/regulator/as3722-regulator.c
+++ b/drivers/regulator/as3722-regulator.c
@@ -719,6 +719,7 @@ static int as3722_get_regulator_dt_data(struct platform_device *pdev,
ret = of_regulator_match(&pdev->dev, np, as3722_regulator_matches,
ARRAY_SIZE(as3722_regulator_matches));
+ of_node_put(np);
if (ret < 0) {
dev_err(&pdev->dev, "Parsing of regulator node failed: %d\n",
ret);
--
1.7.9.5
Add of_node_put to decrement the ref count.
Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/regulator/da9063-regulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c
index bfd7f2f795a6..a61b5d997a08 100644
--- a/drivers/regulator/da9063-regulator.c
+++ b/drivers/regulator/da9063-regulator.c
@@ -674,6 +674,7 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt(
num = of_regulator_match(&pdev->dev, node, da9063_matches,
ARRAY_SIZE(da9063_matches));
+ of_node_put(node);
if (num < 0) {
dev_err(&pdev->dev, "Failed to match regulators\n");
return ERR_PTR(-EINVAL);
--
1.7.9.5
On Mon, Feb 17, 2014 at 02:33:30PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:31PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:32PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:33PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:36PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:35PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:34PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:29PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.
On Mon, Feb 17, 2014 at 02:33:37PM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.
Applied, thanks.