diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-22 10:52:05 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-23 09:56:59 +0000 |
commit | 777ccd43961c002baebd52d986f5e49b0d7bc7f8 (patch) | |
tree | 3042c3cb2c4c5663b2e6c5fe5b10c9915abe4844 /src/soc/amd/stoneyridge/cpu.c | |
parent | 532001ae73529d23878021129484c5bc3f24fed5 (diff) | |
download | coreboot-777ccd43961c002baebd52d986f5e49b0d7bc7f8.tar.xz |
soc/amd/stoneyridge/: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I84fbc90b2a81fe5476d659716f0d6e4f0d7e1de2
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26458
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'src/soc/amd/stoneyridge/cpu.c')
-rw-r--r-- | src/soc/amd/stoneyridge/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/amd/stoneyridge/cpu.c b/src/soc/amd/stoneyridge/cpu.c index 2c415a3e25..4dd371cdd3 100644 --- a/src/soc/amd/stoneyridge/cpu.c +++ b/src/soc/amd/stoneyridge/cpu.c @@ -55,7 +55,7 @@ static void pre_mp_init(void) static int get_cpu_count(void) { - device_t nb = dev_find_slot(0, HT_DEVFN); + struct device *nb = dev_find_slot(0, HT_DEVFN); return (pci_read_config16(nb, D18F0_CPU_CNT) & CPU_CNT_MASK) + 1; } @@ -115,7 +115,7 @@ void stoney_init_cpus(struct device *dev) mtrr_use_temp_range(FLASH_BASE_ADDR, CONFIG_ROM_SIZE, MTRR_TYPE_WRPROT); } -static void model_15_init(device_t dev) +static void model_15_init(struct device *dev) { printk(BIOS_DEBUG, "Model 15 Init.\n"); |