Commit ad618c99 authored by Lukas Wunner's avatar Lukas Wunner Committed by Bjorn Helgaas

PCI: Drop CONFIG_KEXEC_CORE ifdeffery

Drop the CONFIG_KEXEC_CORE #ifdef around reference to "kexec_in_progress".

Commit 2b94ed24 ("kexec: define kexec_in_progress in !CONFIG_KEXEC
case") has made this unnecessary.
Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 29b4817d
...@@ -466,7 +466,6 @@ static void pci_device_shutdown(struct device *dev) ...@@ -466,7 +466,6 @@ static void pci_device_shutdown(struct device *dev)
pci_msi_shutdown(pci_dev); pci_msi_shutdown(pci_dev);
pci_msix_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 * 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 * 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) ...@@ -476,7 +475,6 @@ static void pci_device_shutdown(struct device *dev)
*/ */
if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot))
pci_clear_master(pci_dev); pci_clear_master(pci_dev);
#endif
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment