diff options
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 7104404a9fa7..a2728a498c3f 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -2011,7 +2011,7 @@ int regulator_set_mode(struct regulator *regulator, unsigned int mode) | |||
2011 | } | 2011 | } |
2012 | 2012 | ||
2013 | /* constraints check */ | 2013 | /* constraints check */ |
2014 | ret = regulator_mode_constrain(rdev, mode); | 2014 | ret = regulator_mode_constrain(rdev, &mode); |
2015 | if (ret < 0) | 2015 | if (ret < 0) |
2016 | goto out; | 2016 | goto out; |
2017 | 2017 | ||