diff options
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/intel/sandybridge/acpi.c | 6 | ||||
-rw-r--r-- | src/northbridge/intel/sandybridge/sandybridge.h | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/northbridge/intel/sandybridge/acpi.c b/src/northbridge/intel/sandybridge/acpi.c index 658000aa87..91ecac5956 100644 --- a/src/northbridge/intel/sandybridge/acpi.c +++ b/src/northbridge/intel/sandybridge/acpi.c @@ -26,14 +26,12 @@ unsigned long acpi_fill_mcfg(unsigned long current) { - device_t dev; u32 pciexbar = 0; u32 pciexbar_reg; int max_buses; - dev = dev_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_SB, 0); - if (!dev) - dev = dev_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_IB, 0); + struct device *const dev = dev_find_slot(0, PCI_DEVFN(0, 0)); + if (!dev) return current; diff --git a/src/northbridge/intel/sandybridge/sandybridge.h b/src/northbridge/intel/sandybridge/sandybridge.h index 9d88c70544..dd1a58cbc3 100644 --- a/src/northbridge/intel/sandybridge/sandybridge.h +++ b/src/northbridge/intel/sandybridge/sandybridge.h @@ -201,9 +201,6 @@ #ifndef __ASSEMBLER__ static inline void barrier(void) { asm("" ::: "memory"); } -#define PCI_DEVICE_ID_SB 0x0104 -#define PCI_DEVICE_ID_IB 0x0154 - #ifdef __SMM__ void intel_sandybridge_finalize_smm(void); #else /* !__SMM__ */ |