The use_count problem of regulator
From: Joonyoung Shim
Date: Wed Jan 20 2010 - 01:30:31 EST
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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/