summaryrefslogtreecommitdiff
path: root/drivers/pci/pci_rom.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-11-25 17:46:09 -0800
committerBin Meng <bmeng.cn@gmail.com>2015-12-09 17:44:56 +0800
commit789fa275b3750e60c60cb3d18eabc9467892c257 (patch)
tree0aff843729891c1fd2deec2a674c51aae93c4a31 /drivers/pci/pci_rom.c
parentd475d59020af32bd5b55ca48a5bc73213e53a7c8 (diff)
x86: Remove HAVE_ACPI_RESUME
These are currently dead codes. Until we have complete ACPI support, we don't know if it works or not. Remove to avoid confusion. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/pci/pci_rom.c')
-rw-r--r--drivers/pci/pci_rom.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index d2445438a6..ad1167e2b6 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -33,10 +33,6 @@
#include <video_fb.h>
#include <linux/screen_info.h>
-#ifdef CONFIG_HAVE_ACPI_RESUME
-#include <asm/acpi.h>
-#endif
-
__weak bool board_should_run_oprom(pci_dev_t dev)
{
return true;
@@ -44,10 +40,6 @@ __weak bool board_should_run_oprom(pci_dev_t dev)
static bool should_load_oprom(pci_dev_t dev)
{
-#ifdef CONFIG_HAVE_ACPI_RESUME
- if (acpi_get_slp_type() == 3)
- return false;
-#endif
if (IS_ENABLED(CONFIG_ALWAYS_LOAD_OPROM))
return 1;
if (board_should_run_oprom(dev))