diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-04 22:07:08 +0200 |
---|---|---|
committer | Jonathan A. Kollasch <jakllsch@kollasch.net> | 2018-05-07 17:45:02 +0000 |
commit | 9740bcb0cfb1271e062a4f8b7d182796c6c20356 (patch) | |
tree | 990a0f176cb316f8c180a9f76f329a4807611741 /src/mainboard/msi/ms9185 | |
parent | 29c3f3b8e97aeef0419894c554ff9863848e1860 (diff) |
mb/msi: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I7f29fe3b85bc56ff3f2d225822c415513e961459
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26102
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Diffstat (limited to 'src/mainboard/msi/ms9185')
-rw-r--r-- | src/mainboard/msi/ms9185/get_bus_conf.c | 2 | ||||
-rw-r--r-- | src/mainboard/msi/ms9185/mptable.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/msi/ms9185/get_bus_conf.c b/src/mainboard/msi/ms9185/get_bus_conf.c index 9fee2113c1..d02f30687a 100644 --- a/src/mainboard/msi/ms9185/get_bus_conf.c +++ b/src/mainboard/msi/ms9185/get_bus_conf.c @@ -62,7 +62,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/msi/ms9185/mptable.c b/src/mainboard/msi/ms9185/mptable.c index 1e517a3352..ea7c905af0 100644 --- a/src/mainboard/msi/ms9185/mptable.c +++ b/src/mainboard/msi/ms9185/mptable.c @@ -52,7 +52,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; struct resource *res; for (i = 0; i < 3; i++) { dev = dev_find_device(0x1166, 0x0235, dev); @@ -91,7 +91,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; |