aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-04 21:47:24 +0200
committerJonathan A. Kollasch <jakllsch@kollasch.net>2018-05-07 13:20:54 +0000
commit29c3f3b8e97aeef0419894c554ff9863848e1860 (patch)
tree5e878527e02b7aa130ae27de7ac8466be55b1dae /src
parent457d3ef2dcb64a9b944c3c7cd5a72fbf0ac509de (diff)
mb/winent: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Ice673efd52e414e4064734883ca92dce5fc059cd Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26093 Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/winent/mb6047/acpi_tables.c2
-rw-r--r--src/mainboard/winent/mb6047/get_bus_conf.c2
-rw-r--r--src/mainboard/winent/mb6047/mainboard.c6
-rw-r--r--src/mainboard/winent/mb6047/mptable.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/mainboard/winent/mb6047/acpi_tables.c b/src/mainboard/winent/mb6047/acpi_tables.c
index a61a47bcd2..6302c1da89 100644
--- a/src/mainboard/winent/mb6047/acpi_tables.c
+++ b/src/mainboard/winent/mb6047/acpi_tables.c
@@ -19,7 +19,7 @@
/* APIC */
unsigned long acpi_fill_madt(unsigned long current)
{
- device_t dev;
+ struct device *dev;
struct resource *res;
get_bus_conf();
diff --git a/src/mainboard/winent/mb6047/get_bus_conf.c b/src/mainboard/winent/mb6047/get_bus_conf.c
index a0d3c94e95..de79fa05a7 100644
--- a/src/mainboard/winent/mb6047/get_bus_conf.c
+++ b/src/mainboard/winent/mb6047/get_bus_conf.c
@@ -35,7 +35,7 @@ void get_bus_conf(void)
unsigned apicid_base;
unsigned sbdn;
- device_t dev;
+ struct device *dev;
int i;
if (get_bus_conf_done == 1)
diff --git a/src/mainboard/winent/mb6047/mainboard.c b/src/mainboard/winent/mb6047/mainboard.c
index e928711438..7d9516b4f5 100644
--- a/src/mainboard/winent/mb6047/mainboard.c
+++ b/src/mainboard/winent/mb6047/mainboard.c
@@ -15,7 +15,7 @@ static void hwm_write(u16 base, u8 bank, u8 reg, u8 value)
static void mb6047_hwm_init(void)
{
- device_t dev;
+ struct device *dev;
struct resource *res;
size_t i;
@@ -40,12 +40,12 @@ static void mb6047_hwm_init(void)
hwm_write(res->base, hwmtab[i].bnk, hwmtab[i].idx, hwmtab[i].dat);
}
-static void mb6047_mainboard_init(device_t dev)
+static void mb6047_mainboard_init(struct device *dev)
{
mb6047_hwm_init();
}
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
{
dev->ops->init = mb6047_mainboard_init;
}
diff --git a/src/mainboard/winent/mb6047/mptable.c b/src/mainboard/winent/mb6047/mptable.c
index 853fe653ce..407c59c7e6 100644
--- a/src/mainboard/winent/mb6047/mptable.c
+++ b/src/mainboard/winent/mb6047/mptable.c
@@ -33,7 +33,7 @@ static void *smp_write_config_table(void *v)
/*I/O APICs: APIC ID Version State Address*/
- device_t dev;
+ struct device *dev;
struct resource *res;
uint32_t dword;