diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-04 20:41:40 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2018-05-08 17:51:57 +0000 |
commit | 56f172d9c07743379b36a0d6ce22951549bc2546 (patch) | |
tree | 08abfe3cd808e03f69af1997f20c464269ef5166 /src/mainboard/hp/dl165_g6_fam10 | |
parent | 5bb159a6cf588e0408aa3c56d61242a9f6e803d5 (diff) | |
download | coreboot-56f172d9c07743379b36a0d6ce22951549bc2546.tar.xz |
mb/hp: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Ib9c0d0a85a9e38cdb1bdbcfa055e597f19cf3d5c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26087
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/hp/dl165_g6_fam10')
-rw-r--r-- | src/mainboard/hp/dl165_g6_fam10/get_bus_conf.c | 2 | ||||
-rw-r--r-- | src/mainboard/hp/dl165_g6_fam10/mptable.c | 8 |
2 files changed, 5 insertions, 5 deletions
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; |