diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-01-29 16:58:19 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:50:35 -0700 |
commit | 501f82d2ca4f7f73418b68271f514eae71f34fe2 (patch) | |
tree | fb781eea1e7eb289f8dff4ea96cae6f334ecc235 /drivers/regulator | |
parent | d781f9ce1e6a5b23c49ce26eeacb67fc81018700 (diff) |
arm: regulator: gpio_switch: Returning proper enable states
Returning proper enable states when the supply of the rail is not
enabled.
Original-Change-Id: Ibb707790b03b1af7e3c305c6dba3a28914ed22b2
Reviewed-on: http://git-master/r/17569
Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com>
Tested-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I5e072d19d6cf5f2e5ab4f647e75715fb796673c7
Diffstat (limited to 'drivers/regulator')
-rwxr-xr-x | drivers/regulator/gpio-switch-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/gpio-switch-regulator.c b/drivers/regulator/gpio-switch-regulator.c index 6babb6c2fb0e..6b4d565b3bf7 100755 --- a/drivers/regulator/gpio-switch-regulator.c +++ b/drivers/regulator/gpio-switch-regulator.c @@ -142,7 +142,7 @@ static int gpio_switch_regulator_is_enabled(struct regulator_dev *rdev) if (ri->input_regulator) { ret = regulator_is_enabled(ri->input_regulator); if (!ret) - return !ret; + return ret; } return (ri->is_enable) ? 1 : 0; } |