regulator: core: disable parent if child enabled during registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 28 May 2013 14:44:57 +0000 (19:44 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 31 May 2013 21:40:53 +0000 (14:40 -0700)
commit93b10111379bbbef916b86105510f1b7bd6bf77f
tree62aa27c9b5a2b64b3654ece0bc7de6e87d358068
parentb1dcaca0fa3ee6373f6b23d0f91cbcda9847bf07
regulator: core: disable parent if child enabled during registration

If regulator's parent is enabled because of regulator is found to
be enabled during registration then disable parent if:
- regulator registration failed or
- when full constraints is enabled and regulator get disabled.

bug 1285809

Change-Id: I7a7c551543a9cbecf83bf10ef783e72aaa8c2173
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Venkat Reddy <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/233346
Reviewed-by: Yong Goo Yi <yyi@nvidia.com>
Tested-by: Yong Goo Yi <yyi@nvidia.com>
drivers/regulator/core.c