diff options
-rw-r--r-- | drivers/regulator/ab8500.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index da883e661b38..f15807449011 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c | |||
@@ -256,14 +256,7 @@ static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev, | |||
256 | unsigned int new_sel) | 256 | unsigned int new_sel) |
257 | { | 257 | { |
258 | struct ab8500_regulator_info *info = rdev_get_drvdata(rdev); | 258 | struct ab8500_regulator_info *info = rdev_get_drvdata(rdev); |
259 | int ret; | ||
260 | 259 | ||
261 | /* If the regulator isn't on, it won't take time here */ | ||
262 | ret = ab8500_regulator_is_enabled(rdev); | ||
263 | if (ret < 0) | ||
264 | return ret; | ||
265 | if (!ret) | ||
266 | return 0; | ||
267 | return info->delay; | 260 | return info->delay; |
268 | } | 261 | } |
269 | 262 | ||