]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: amd-pmc: fix compilation without CONFIG_RTC_SYSTOHC_DEVICE
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 26 Oct 2021 17:14:41 +0000 (12:14 -0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 27 Oct 2021 14:06:35 +0000 (16:06 +0200)
commit912a558b1198f9cfe826fb35e0b409434412a77b
treed41a90b5234cee6991828dc945b35ec77621dc7d
parent7999f9a1cc27c047afe97bfefdd043e8ed9b9aa1
platform/x86: amd-pmc: fix compilation without CONFIG_RTC_SYSTOHC_DEVICE

Just hardcode the RTC to "rtc0" which is the default for
CONFIG_RTC_SYSTOHC_DEVICE and used by all standard x86 distros.

Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Fixes: 5ce9f7468cc3 ("platform/x86: amd-pmc: Add special handling for timer based S0i3 wakeup")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20211026171443.289-1-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd-pmc.c