From b352e11f543d4cd23198300858e5d155cd2c8461 Mon Sep 17 00:00:00 2001 From: Atul Raut Date: Tue, 3 Mar 2020 17:19:15 -0800 Subject: [PATCH] rtc: qpnp-rtc: Add support for thaw callback Hibernation may fail after this driver's freeze callback. Implement thaw callback to undo the changes done in freeze callback. Change-Id: I6ba6c2e51cdfc6e82fe0a6c1b1bab5e286a3716b Signed-off-by: Atul Raut --- drivers/rtc/qpnp-rtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/qpnp-rtc.c b/drivers/rtc/qpnp-rtc.c index 624d336a0289..579877306d92 100644 --- a/drivers/rtc/qpnp-rtc.c +++ b/drivers/rtc/qpnp-rtc.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2015, 2017-2019, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2015, 2017-2020, 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 @@ -734,6 +734,7 @@ static int qpnp_rtc_freeze(struct device *dev) static const struct dev_pm_ops qpnp_rtc_pm_ops = { .freeze = qpnp_rtc_freeze, .restore = qpnp_rtc_restore, + .thaw = qpnp_rtc_restore, }; static const struct of_device_id spmi_match_table[] = {