diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-02-22 14:59:22 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-23 08:20:30 +0100 |
commit | 9c0a30b67bd916a7da1a7101dbf3115e5f10d852 (patch) | |
tree | 3322f8de5c900f41430bfd01d284316b9d8c20c1 /drivers/acpi/sleep.c | |
parent | 69c42d493db452ea87c1ac56e83c978512f4e6ec (diff) | |
download | linux-stable-9c0a30b67bd916a7da1a7101dbf3115e5f10d852.tar.gz linux-stable-9c0a30b67bd916a7da1a7101dbf3115e5f10d852.tar.bz2 linux-stable-9c0a30b67bd916a7da1a7101dbf3115e5f10d852.zip |
ACPI/sleep: Simplify code by using the new dmi_get_bios_year() helper
...instead of open coding its functionality.
No changes in functionality.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-acpi@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Link: http://lkml.kernel.org/r/20180222125923.57385-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r-- | drivers/acpi/sleep.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 46cde0912762..b35923e3a926 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c @@ -376,12 +376,10 @@ void __init acpi_sleep_no_blacklist(void) static void __init acpi_sleep_dmi_check(void) { - int year; - if (ignore_blacklist) return; - if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) && year >= 2012) + if (dmi_get_bios_year() >= 2012) acpi_nvs_nosave_s3(); dmi_check_system(acpisleep_dmi_table); |