summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-19 23:28:09 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-19 23:28:08 -0700
commitc2b563ce7dd32537de7b0294f8bc8a319cc853a8 (patch)
tree15caa056d6eb81e89c147194da0e13cf7c754e0f /drivers/soc/qcom
parent3c52ac5339f80613aec5ffcfd718b1990bae5b4b (diff)
parentf68a3b56e414516da5d60dee8a18aaab9b869f13 (diff)
Merge "soc: qcom: pil: Correct notification path in subsys_stop"
Diffstat (limited to 'drivers/soc/qcom')
-rw-r--r--drivers/soc/qcom/subsystem_restart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/subsystem_restart.c b/drivers/soc/qcom/subsystem_restart.c
index 76d941ceb77e..6cfb8f7c836c 100644
--- a/drivers/soc/qcom/subsystem_restart.c
+++ b/drivers/soc/qcom/subsystem_restart.c
@@ -730,6 +730,7 @@ static void subsys_stop(struct subsys_device *subsys)
{
const char *name = subsys->desc->name;
+ notify_each_subsys_device(&subsys, 1, SUBSYS_BEFORE_SHUTDOWN, NULL);
if (!of_property_read_bool(subsys->desc->dev->of_node,
"qcom,pil-force-shutdown")) {
subsys_set_state(subsys, SUBSYS_OFFLINING);
@@ -739,7 +740,6 @@ static void subsys_stop(struct subsys_device *subsys)
pr_debug("Graceful shutdown failed for %s\n", name);
}
- notify_each_subsys_device(&subsys, 1, SUBSYS_BEFORE_SHUTDOWN, NULL);
subsys->desc->shutdown(subsys->desc, false);
subsys_set_state(subsys, SUBSYS_OFFLINE);
disable_all_irqs(subsys);