|
@@ -1341,6 +1341,9 @@ static int _regulator_disable(struct regulator_dev *rdev)
|
|
|
__func__, rdev_get_name(rdev));
|
|
|
return ret;
|
|
|
}
|
|
|
+
|
|
|
+ _notifier_call_chain(rdev, REGULATOR_EVENT_DISABLE,
|
|
|
+ NULL);
|
|
|
}
|
|
|
|
|
|
/* decrease our supplies ref count and disable if required */
|
|
@@ -1399,8 +1402,8 @@ static int _regulator_force_disable(struct regulator_dev *rdev)
|
|
|
return ret;
|
|
|
}
|
|
|
/* notify other consumers that power has been forced off */
|
|
|
- _notifier_call_chain(rdev, REGULATOR_EVENT_FORCE_DISABLE,
|
|
|
- NULL);
|
|
|
+ _notifier_call_chain(rdev, REGULATOR_EVENT_FORCE_DISABLE |
|
|
|
+ REGULATOR_EVENT_DISABLE, NULL);
|
|
|
}
|
|
|
|
|
|
/* decrease our supplies ref count and disable if required */
|