diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-27 17:58:57 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-06-04 02:33:54 +0000 |
commit | 15a487a57666a7eb42d33f41e4a235efe67439d8 (patch) | |
tree | aca64f438b9aa7f15837d39a314cf63e80837785 /src/soc/intel/fsp_broadwell_de/acpi.c | |
parent | 509edac717d608d94f8c343fc3de16310c020dac (diff) | |
download | coreboot-15a487a57666a7eb42d33f41e4a235efe67439d8.tar.xz |
soc/intel/fsp_broadwell_de: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I68c455d4bc524c2dd2d3ba87ab6641e70c78521c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26589
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/acpi.c')
-rw-r--r-- | src/soc/intel/fsp_broadwell_de/acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/acpi.c b/src/soc/intel/fsp_broadwell_de/acpi.c index 4c6417d5d8..0b32388117 100644 --- a/src/soc/intel/fsp_broadwell_de/acpi.c +++ b/src/soc/intel/fsp_broadwell_de/acpi.c @@ -82,7 +82,7 @@ static int acpi_sci_irq(void) { uint8_t actl = 0; static uint8_t sci_irq = 0; - device_t dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC)); + struct device *dev = dev_find_slot(0, PCI_DEVFN(LPC_DEV, LPC_FUNC)); /* If this function was already called, just return the stored value. */ if (sci_irq) @@ -395,7 +395,7 @@ unsigned long northcluster_write_acpi_tables(struct device *const dev, struct acpi_rsdp *const rsdp) { acpi_dmar_t *const dmar = (acpi_dmar_t *)current; - device_t vtdev = dev_find_slot(0, PCI_DEVFN(5, 0)); + struct device *vtdev = dev_find_slot(0, PCI_DEVFN(5, 0)); /* Create DMAR table only if virtualization is enabled */ if (!(pci_read_config32(vtdev, 0x180) & 0x01)) @@ -523,7 +523,7 @@ static void generate_P_state_entries(int core, int cores_per_package) acpigen_pop_len(); } -void generate_cpu_entries(device_t device) +void generate_cpu_entries(struct device *device) { int core; int pcontrol_blk = get_pmbase(), plen = 6; |