regulator: Enable supply regulator if child rail is enabled.
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 2 Jan 2012 07:38:45 +0000 (13:08 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Jan 2012 11:36:02 +0000 (11:36 +0000)
During regulator_register, the rail is set on the provided
machine constraints and if it is enabled then it is also
require to enable the supply regulator. This will make sure
that:
   1. Proper reference count for supply regulator to be maintain.
   2. Supply regulator should be enable when given rail is enabled.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found