Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[muen/linux.git] / drivers / pci / pci.c
index bd6f156dc3cfa9abc54a8aa0973fe6ffdcdd81fc..99ec0ef5ba8265abc91f402a904690b9bbbf5df6 100644 (file)
@@ -2258,8 +2258,6 @@ void pci_config_pm_runtime_put(struct pci_dev *pdev)
  */
 bool pci_bridge_d3_possible(struct pci_dev *bridge)
 {
-       unsigned int year;
-
        if (!pci_is_pcie(bridge))
                return false;
 
@@ -2287,10 +2285,8 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge)
                 * It should be safe to put PCIe ports from 2015 or newer
                 * to D3.
                 */
-               if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) &&
-                   year >= 2015) {
+               if (dmi_get_bios_year() >= 2015)
                        return true;
-               }
                break;
        }