summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkata Rao Kakani <vkakani@codeaurora.org>2018-05-14 17:31:15 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-06-22 10:56:18 -0700
commit4b5f10b9f925a6d120cfa42789c0b152c66af6a6 (patch)
treeb90a575b57905d90cae291d645ca4032a0c5e6a0
parent318dc882ca4897e15d59abe29a45d567821f554a (diff)
msm: watchdog: Add hibernation support
During hibernation, freeze/thaw/restore dev_pm_ops are called instead of suspend/resume. Hook up the hibernation ops using macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS. Change-Id: Ic4cb9f5aec1a0a1d66cf2cea9946a4a3aae37671 Signed-off-by: Atul Raut <araut@codeaurora.org>
-rw-r--r--drivers/soc/qcom/watchdog_v2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/soc/qcom/watchdog_v2.c b/drivers/soc/qcom/watchdog_v2.c
index 625030f1f256..3528cb08c78e 100644
--- a/drivers/soc/qcom/watchdog_v2.c
+++ b/drivers/soc/qcom/watchdog_v2.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -873,8 +873,7 @@ err:
}
static const struct dev_pm_ops msm_watchdog_dev_pm_ops = {
- .suspend_noirq = msm_watchdog_suspend,
- .resume_noirq = msm_watchdog_resume,
+ SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(msm_watchdog_suspend, msm_watchdog_resume)
};
static struct platform_driver msm_watchdog_driver = {