]> Git Repo - linux.git/commit
rtc: cmos: Remove the `use_acpi_alarm' module parameter for !ACPI
authorMaciej W. Rozycki <[email protected]>
Tue, 2 Oct 2018 01:09:05 +0000 (02:09 +0100)
committerAlexandre Belloni <[email protected]>
Thu, 4 Oct 2018 09:15:57 +0000 (11:15 +0200)
commitbc51098cdd9573bfdecfd02fc8ed474419d73ea0
tree97e74f352a8ab4e52a6ec73a157b8b631821d8fa
parentd197a253855d2d8e507a003880aab35c4e2473db
rtc: cmos: Remove the `use_acpi_alarm' module parameter for !ACPI

Fix a problem with commit 311ee9c151ad ("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: Maciej W. Rozycki <[email protected]>
Fixes: 311ee9c151ad ("rtc: cmos: allow using ACPI for RTC alarm instead of HPET")
Cc: [email protected] # 4.18+
Signed-off-by: Alexandre Belloni <[email protected]>
drivers/rtc/rtc-cmos.c
This page took 0.047087 seconds and 4 git commands to generate.