mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-24 19:09:33 -04:00
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 <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
committed by
Mark Brown
parent
4f842f6ba6
commit
57ad526ae2
@@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev,
|
||||
err = -ENOMEM;
|
||||
return err;
|
||||
}
|
||||
supply_rdev->open_count++;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user