* [PATCH] regulator: core: increment open_count when regulator supply is set
@ 2012-07-23 15:05 Laxman Dewangan
2012-08-04 10:58 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Laxman Dewangan @ 2012-07-23 15:05 UTC (permalink / raw)
To: broonie, lrg; +Cc: linux-kernel, Laxman Dewangan
When registering the regulator and setting supply for the regulator
then increment open_count to reflect correct number of users.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
drivers/regulator/core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index f092588..b28221a 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev,
err = -ENOMEM;
return err;
}
+ supply_rdev->open_count++;
return 0;
}
--
1.7.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: core: increment open_count when regulator supply is set
2012-07-23 15:05 [PATCH] regulator: core: increment open_count when regulator supply is set Laxman Dewangan
@ 2012-08-04 10:58 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-08-04 10:58 UTC (permalink / raw)
To: Laxman Dewangan; +Cc: lrg, linux-kernel
On Mon, Jul 23, 2012 at 08:35:46PM +0530, Laxman Dewangan wrote:
> When registering the regulator and setting supply for the regulator
> then increment open_count to reflect correct number of users.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-04 13:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-23 15:05 [PATCH] regulator: core: increment open_count when regulator supply is set Laxman Dewangan
2012-08-04 10:58 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).