diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index b28221af648e..5f2221095a46 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -2179,9 +2179,12 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev, | |||
2179 | } | 2179 | } |
2180 | } | 2180 | } |
2181 | 2181 | ||
2182 | if (ret == 0 && best_val >= 0) | 2182 | if (ret == 0 && best_val >= 0) { |
2183 | unsigned long data = best_val; | ||
2184 | |||
2183 | _notifier_call_chain(rdev, REGULATOR_EVENT_VOLTAGE_CHANGE, | 2185 | _notifier_call_chain(rdev, REGULATOR_EVENT_VOLTAGE_CHANGE, |
2184 | (void *)best_val); | 2186 | (void *)data); |
2187 | } | ||
2185 | 2188 | ||
2186 | trace_regulator_set_voltage_complete(rdev_get_name(rdev), best_val); | 2189 | trace_regulator_set_voltage_complete(rdev_get_name(rdev), best_val); |
2187 | 2190 | ||