]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
PCI: Drop CONFIG_KEXEC_CORE ifdeffery
authorLukas Wunner <lukas@wunner.de>
Tue, 9 Aug 2016 09:53:11 +0000 (11:53 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Aug 2016 16:56:04 +0000 (11:56 -0500)
Drop the CONFIG_KEXEC_CORE #ifdef around reference to "kexec_in_progress".

Commit 2b94ed245861 ("kexec: define kexec_in_progress in !CONFIG_KEXEC
case") has made this unnecessary.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-driver.c

index e39a67c8ef397e7bd7511b266a533ab0cff817f8..edd78e04b693ed6a0807734a26f682c8ecc25506 100644 (file)
@@ -466,7 +466,6 @@ static void pci_device_shutdown(struct device *dev)
        pci_msi_shutdown(pci_dev);
        pci_msix_shutdown(pci_dev);
 
-#ifdef CONFIG_KEXEC_CORE
        /*
         * If this is a kexec reboot, turn off Bus Master bit on the
         * device to tell it to not continue to do DMA. Don't touch
@@ -476,7 +475,6 @@ static void pci_device_shutdown(struct device *dev)
         */
        if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot))
                pci_clear_master(pci_dev);
-#endif
 }
 
 #ifdef CONFIG_PM