Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0708e0ef authored by Omkar Savagaonkar's avatar Omkar Savagaonkar Committed by Gerrit - the friendly Code Review server
Browse files

msm: watchdog: Add hibernation support



Currently watchdog code is registering to suspend and resume
callbacks only. During hibernation lifecycle freeze, thaw and
restore callbacks are called(dev_pm_ops).Hook up hibernation
ops using macro SET_NOIRQ_SYSTEM_SLEEP_PM_OPS.

Change-Id: I439d29d1cdcd85a4ab0841252bac888fb17498fc
Signed-off-by: default avatarOmkar Savagaonkar <omkars@codeaurora.org>
parent 4b7821f6
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, 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
@@ -922,8 +922,7 @@ static int msm_watchdog_probe(struct platform_device *pdev)
}

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 = {