summaryrefslogtreecommitdiff
path: root/src/mainboard/broadcom
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-04 20:10:18 +0200
committerPatrick Rudolph <siro@das-labor.org>2018-05-08 17:49:19 +0000
commit092863b46043e2736a482bc8731fd6a8982ffd36 (patch)
treeae3e658e1dbe19ce7b39ba0951160848ffb829b7 /src/mainboard/broadcom
parent8735d1bdc7ff76ee643472012af026e92d82477a (diff)
mb/broadcom: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Icf7c99ca55d2bcbca2c974d59a63e89758ba5ea6 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26080 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/broadcom')
-rw-r--r--src/mainboard/broadcom/blast/get_bus_conf.c2
-rw-r--r--src/mainboard/broadcom/blast/mptable.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/broadcom/blast/get_bus_conf.c b/src/mainboard/broadcom/blast/get_bus_conf.c
index c344ea3281..879178a0d6 100644
--- a/src/mainboard/broadcom/blast/get_bus_conf.c
+++ b/src/mainboard/broadcom/blast/get_bus_conf.c
@@ -48,7 +48,7 @@ void get_bus_conf(void)
unsigned apicid_base;
- device_t dev;
+ struct device *dev;
int i;
if (get_bus_conf_done == 1)
diff --git a/src/mainboard/broadcom/blast/mptable.c b/src/mainboard/broadcom/blast/mptable.c
index 854e255f8c..98aa2c1f55 100644
--- a/src/mainboard/broadcom/blast/mptable.c
+++ b/src/mainboard/broadcom/blast/mptable.c
@@ -34,7 +34,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);
@@ -71,7 +71,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;