From 56f172d9c07743379b36a0d6ce22951549bc2546 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Fri, 4 May 2018 20:41:40 +0200 Subject: mb/hp: Get rid of device_t Use of device_t has been abandoned in ramstage. Change-Id: Ib9c0d0a85a9e38cdb1bdbcfa055e597f19cf3d5c Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26087 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/hp/dl165_g6_fam10/get_bus_conf.c | 2 +- src/mainboard/hp/dl165_g6_fam10/mptable.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mainboard/hp/dl165_g6_fam10') diff --git a/src/mainboard/hp/dl165_g6_fam10/get_bus_conf.c b/src/mainboard/hp/dl165_g6_fam10/get_bus_conf.c index 84c7c9ba06..b29fb2c51e 100644 --- a/src/mainboard/hp/dl165_g6_fam10/get_bus_conf.c +++ b/src/mainboard/hp/dl165_g6_fam10/get_bus_conf.c @@ -65,7 +65,7 @@ void get_bus_conf(void) unsigned apicid_base; - device_t dev; + struct device *dev; int i; struct mb_sysconf_t *m; diff --git a/src/mainboard/hp/dl165_g6_fam10/mptable.c b/src/mainboard/hp/dl165_g6_fam10/mptable.c index 6a27d9746b..b65f12ca8c 100644 --- a/src/mainboard/hp/dl165_g6_fam10/mptable.c +++ b/src/mainboard/hp/dl165_g6_fam10/mptable.c @@ -55,7 +55,7 @@ static void *smp_write_config_table(void *v) /*I/O APICs: APIC ID Version State Address*/ { - device_t dev = 0; + struct device *dev = NULL; int i; struct resource *res; for (i = 0; i < 3; i++) { @@ -84,7 +84,7 @@ static void *smp_write_config_table(void *v) outb(0x0e, 0x4d1); { - device_t dev; + struct device *dev; dev = dev_find_device(0x1166, 0x0205, 0); if (dev) { uint32_t dword; @@ -100,7 +100,7 @@ static void *smp_write_config_table(void *v) // hide XIOAPIC PCI configuration space { - device_t dev; + struct device *dev; dev = dev_find_device(0x1166, 0x205, 0); if (dev) { uint32_t dword; @@ -127,7 +127,7 @@ static void *smp_write_config_table(void *v) /* enable int */ /* why here? must get the BAR and PCI command bit 1 set before enable it ....*/ { - device_t dev; + struct device *dev; dev = dev_find_device(0x1166, 0x0205, 0); if (dev) { uint32_t dword; -- cgit v1.2.3