Messages in this thread | | | Date | Wed, 20 Jan 2010 15:30:24 +0900 | From | Joonyoung Shim <> | Subject | The use_count problem of regulator |
| |
Hi, all.
I have one simple question.
In the regulator framework, if the regulator is enabled for example by boot_on constraint, when regulator_get is called at the driver probe function, the use_count of struct regulator_dev is zero. But if regulator_has_full_constraints() is used, even though above the regulator is using, it is disabled by regulator_init_complete() because the use_count is zero.
Of course, we can use regulator_get_exclusive instead of regulator_get, but if the regulator can be shared, i think this will be a problem.
Thanks.
| |