regulator: core: increment open_count when regulator supply is set
PATCH 1/1 regulator: core: increment open_count when regulator supply is set
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 <[email protected]>
--- drivers/regulator/core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/regulator/core.c +1 -0
@@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev, err = -ENOMEM ;return err; } + supply_rdev->open_count++;return 0 ; }
Signature · 1 line
1.7.1.1
Mark Brown
AppliedQuoted 2 lines · Laxman Dewangan
When registering the regulator and setting supply for the regulator then increment
open_countto reflect correct number of users.
Applied, thanks.