[coreboot-gerrit] Change in coreboot[master]: mb/winnet: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Fri May 4 21:48:16 CEST 2018


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/26093


Change subject: mb/winnet: Get rid of device_t
......................................................................

mb/winnet: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ice673efd52e414e4064734883ca92dce5fc059cd
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/mainboard/winent/mb6047/acpi_tables.c
M src/mainboard/winent/mb6047/get_bus_conf.c
M src/mainboard/winent/mb6047/mainboard.c
M src/mainboard/winent/mb6047/mptable.c
4 files changed, 6 insertions(+), 6 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/26093/1

diff --git a/src/mainboard/winent/mb6047/acpi_tables.c b/src/mainboard/winent/mb6047/acpi_tables.c
index a61a47b..6302c1d 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 a0d3c94..de79fa0 100644
--- a/src/mainboard/winent/mb6047/get_bus_conf.c
+++ b/src/mainboard/winent/mb6047/get_bus_conf.c
@@ -35,7 +35,7 @@
 	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 e928711..7d9516b 100644
--- a/src/mainboard/winent/mb6047/mainboard.c
+++ b/src/mainboard/winent/mb6047/mainboard.c
@@ -15,7 +15,7 @@
 
 static void mb6047_hwm_init(void)
 {
-	device_t dev;
+	struct device *dev;
 	struct resource *res;
 	size_t i;
 
@@ -40,12 +40,12 @@
 		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 853fe65..407c59c 100644
--- a/src/mainboard/winent/mb6047/mptable.c
+++ b/src/mainboard/winent/mb6047/mptable.c
@@ -33,7 +33,7 @@
 
 /*I/O APICs:	APIC ID	Version	State		Address*/
 
-	device_t dev;
+	struct device *dev;
 	struct resource *res;
 	uint32_t dword;
 

-- 
To view, visit https://review.coreboot.org/26093
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ice673efd52e414e4064734883ca92dce5fc059cd
Gerrit-Change-Number: 26093
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180504/d43c8e9f/attachment.html>


More information about the coreboot-gerrit mailing list