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

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


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


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

mb/sunw: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: I348a7ad368cf5b5a7837c45038a1659a581c518f
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/mainboard/sunw/ultra40/get_bus_conf.c
M src/mainboard/sunw/ultra40/mptable.c
M src/mainboard/sunw/ultra40m2/get_bus_conf.c
M src/mainboard/sunw/ultra40m2/mainboard.c
M src/mainboard/sunw/ultra40m2/mptable.c
5 files changed, 9 insertions(+), 9 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/26096/1

diff --git a/src/mainboard/sunw/ultra40/get_bus_conf.c b/src/mainboard/sunw/ultra40/get_bus_conf.c
index 4ed5746..e7096f3 100644
--- a/src/mainboard/sunw/ultra40/get_bus_conf.c
+++ b/src/mainboard/sunw/ultra40/get_bus_conf.c
@@ -65,7 +65,7 @@
 
 	unsigned apicid_base;
 
-	device_t dev;
+	struct device *dev;
 
 	if (get_bus_conf_done == 1)
 		return;		//do it only once
diff --git a/src/mainboard/sunw/ultra40/mptable.c b/src/mainboard/sunw/ultra40/mptable.c
index 5e9c90b..b66b91d 100644
--- a/src/mainboard/sunw/ultra40/mptable.c
+++ b/src/mainboard/sunw/ultra40/mptable.c
@@ -49,7 +49,7 @@
 
 /*I/O APICs:	APIC ID	Version	State		Address*/
 	{
-		device_t dev;
+		struct device *dev;
 		struct resource *res;
 		uint32_t dword;
 
diff --git a/src/mainboard/sunw/ultra40m2/get_bus_conf.c b/src/mainboard/sunw/ultra40m2/get_bus_conf.c
index b57f957..2a10eeb 100644
--- a/src/mainboard/sunw/ultra40m2/get_bus_conf.c
+++ b/src/mainboard/sunw/ultra40m2/get_bus_conf.c
@@ -67,7 +67,7 @@
 
 	unsigned devn = sysconf.hcdn[i] & 0xff;
 
-	device_t dev;
+	struct device *dev;
 
 	dev = dev_find_slot(busn, PCI_DEVFN(devn,0));
 
diff --git a/src/mainboard/sunw/ultra40m2/mainboard.c b/src/mainboard/sunw/ultra40m2/mainboard.c
index 072e8a1..750ae6c 100644
--- a/src/mainboard/sunw/ultra40m2/mainboard.c
+++ b/src/mainboard/sunw/ultra40m2/mainboard.c
@@ -159,7 +159,7 @@
 	printk(BIOS_WARNING, "failed to initialize EMC6D103\n");
 }
 
-static void mainboard_init(device_t dev)
+static void mainboard_init(struct device *dev)
 {
 	emc6d103_init();
 	dme1737_runtime_init();
@@ -168,7 +168,7 @@
 	printk(BIOS_DEBUG, "%s done\n", __func__);
 }
 
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 	dev->ops->init = mainboard_init;
 }
diff --git a/src/mainboard/sunw/ultra40m2/mptable.c b/src/mainboard/sunw/ultra40m2/mptable.c
index 0493d38..56266a5 100644
--- a/src/mainboard/sunw/ultra40m2/mptable.c
+++ b/src/mainboard/sunw/ultra40m2/mptable.c
@@ -45,7 +45,7 @@
 
 /*I/O APICs:	APIC ID	Version	State		Address*/
 	{
-		device_t dev;
+		struct device *dev;
 		struct resource *res;
 		uint32_t dword;
 
@@ -115,7 +115,7 @@
 
 //Slot PCIE
 	for (j = 2; j < 8; j++) {
-		device_t dev;
+		struct device *dev;
 		dev = dev_find_slot(m->bus_mcp55, PCI_DEVFN(sbdn + 0x0a + j - 2 , 0));
 		if (!dev || !dev->enabled)
 			continue;
@@ -126,7 +126,7 @@
 
 //Slot PCI 32
 	{
-		device_t dev;
+		struct device *dev;
 		dev = dev_find_slot(m->bus_mcp55, PCI_DEVFN(sbdn + 6 , 0));
 		if (dev && dev->enabled) {
 			for (i = 0; i < 4; i++)
@@ -146,7 +146,7 @@
 
 	//Slot  PCIE
 		for (j = 2; j < 8; j++) {
-			device_t dev;
+			struct device *dev;
 			dev = dev_find_slot(m->bus_mcp55b, PCI_DEVFN(m->sbdnb + 0x0a + j - 2 , 0));
 			if (!dev || !dev->enabled)
 				continue;

-- 
To view, visit https://review.coreboot.org/26096
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: I348a7ad368cf5b5a7837c45038a1659a581c518f
Gerrit-Change-Number: 26096
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/673ff389/attachment.html>


More information about the coreboot-gerrit mailing list