aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index be4c39f8ab81..147b9be3b4d2 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -2679,7 +2679,7 @@ static bool ahci_asus_m2a_vm_32bit_only(struct pci_dev *pdev)
2679 * different versions. 2679 * different versions.
2680 */ 2680 */
2681 date = dmi_get_system_info(DMI_BIOS_DATE); 2681 date = dmi_get_system_info(DMI_BIOS_DATE);
2682 year = dmi_get_year(DMI_BIOS_DATE); 2682 dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL);
2683 if (date && strlen(date) >= 10 && date[2] == '/' && date[5] == '/' && 2683 if (date && strlen(date) >= 10 && date[2] == '/' && date[5] == '/' &&
2684 (year > 2007 || 2684 (year > 2007 ||
2685 (year == 2007 && strncmp(date, cutoff_mmdd, 5) >= 0))) 2685 (year == 2007 && strncmp(date, cutoff_mmdd, 5) >= 0)))