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>
This commit is contained in:
Elyes HAOUAS 2018-05-04 21:47:24 +02:00 committed by Jonathan A. Kollasch
parent 457d3ef2dc
commit 29c3f3b8e9
4 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@
/* APIC */ /* APIC */
unsigned long acpi_fill_madt(unsigned long current) unsigned long acpi_fill_madt(unsigned long current)
{ {
device_t dev; struct device *dev;
struct resource *res; struct resource *res;
get_bus_conf(); get_bus_conf();

View File

@ -35,7 +35,7 @@ void get_bus_conf(void)
unsigned apicid_base; unsigned apicid_base;
unsigned sbdn; unsigned sbdn;
device_t dev; struct device *dev;
int i; int i;
if (get_bus_conf_done == 1) if (get_bus_conf_done == 1)

View File

@ -15,7 +15,7 @@ static void hwm_write(u16 base, u8 bank, u8 reg, u8 value)
static void mb6047_hwm_init(void) static void mb6047_hwm_init(void)
{ {
device_t dev; struct device *dev;
struct resource *res; struct resource *res;
size_t i; 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); 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(); mb6047_hwm_init();
} }
static void mainboard_enable(device_t dev) static void mainboard_enable(struct device *dev)
{ {
dev->ops->init = mb6047_mainboard_init; dev->ops->init = mb6047_mainboard_init;
} }

View File

@ -33,7 +33,7 @@ static void *smp_write_config_table(void *v)
/*I/O APICs: APIC ID Version State Address*/ /*I/O APICs: APIC ID Version State Address*/
device_t dev; struct device *dev;
struct resource *res; struct resource *res;
uint32_t dword; uint32_t dword;