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

Skip to content
Commit bc51098c authored by Maciej W. Rozycki's avatar Maciej W. Rozycki Committed by Alexandre Belloni
Browse files

rtc: cmos: Remove the `use_acpi_alarm' module parameter for !ACPI



Fix a problem with commit 311ee9c1 ("rtc: cmos: allow using ACPI for
RTC alarm instead of HPET") defining `use_acpi_alarm' module parameter
even for non-ACPI platforms, which ignore it.  Wrap the definition into
#ifdef CONFIG_ACPI and use a static inline wrapper function, hardcoded
to return 0 and consequently optimized away for !ACPI, following the
existing pattern with HPET handling functions.

Signed-off-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
Fixes: 311ee9c1 ("rtc: cmos: allow using ACPI for RTC alarm instead of HPET")
Cc: stable@vger.kernel.org # 4.18+
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent d197a253
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment