PM: base: power: don't try to use non-existing RTC for storing data
authorJuergen Gross <jgross@suse.com>
Fri, 3 Sep 2021 08:49:36 +0000 (10:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:27:54 +0000 (12:27 +0200)
commitcd64b416aed2f152d89c25db2ebf4f05e16fc08d
tree75afd7b227204ba6a411f903c835a0a31ced9eab
parenta67e7cdbc633076e5e54ae40d68581c55daea5b5
PM: base: power: don't try to use non-existing RTC for storing data

commit 0560204b360a332c321124dbc5cdfd3364533a74 upstream.

If there is no legacy RTC device, don't try to use it for storing trace
data across suspend/resume.

Cc: <stable@vger.kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20210903084937.19392-2-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/trace.c