Commit 57ad526a authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Mark Brown

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: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 4f842f6b
...@@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev, ...@@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev,
err = -ENOMEM; err = -ENOMEM;
return err; return err;
} }
supply_rdev->open_count++;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment