]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/acpi/blacklist.c
V4L/DVB (12201): adv7343: remove unused #include <linux/version.h>
[mv-sheeva.git] / drivers / acpi / blacklist.c
index f6baa77deefbd6d0743e92fc4a593b66a93c64c5..0c4ca4d318b32b94dcd69d3324d8172d71efa0e7 100644 (file)
@@ -78,9 +78,10 @@ static struct acpi_blacklist_item acpi_blacklist[] __initdata = {
 
 static int __init blacklist_by_year(void)
 {
-       int year = dmi_get_year(DMI_BIOS_DATE);
+       int year;
+
        /* Doesn't exist? Likely an old system */
-       if (year == -1) {
+       if (!dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL)) {
                printk(KERN_ERR PREFIX "no DMI BIOS year, "
                        "acpi=force is required to enable ACPI\n" );
                return 1;