[coreboot-gerrit] Change in coreboot[master]: soc/cavium/cn81xx: Don't use device_t in ramstage

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Sun Sep 16 17:41:28 CEST 2018


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


Change subject: soc/cavium/cn81xx: Don't use device_t in ramstage
......................................................................

soc/cavium/cn81xx: Don't use device_t in ramstage

Use of device_t has been abandoned in ramstage.

Change-Id: Ifa54624664c06c606fb4e083bae98b4accc61be0
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/soc/cavium/cn81xx/soc.c
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/28632/1

diff --git a/src/soc/cavium/cn81xx/soc.c b/src/soc/cavium/cn81xx/soc.c
index 4a4312d..d9eb052 100644
--- a/src/soc/cavium/cn81xx/soc.c
+++ b/src/soc/cavium/cn81xx/soc.c
@@ -326,7 +326,7 @@
 			  BM_MEM_RESERVED);
 }
 
-static void soc_read_resources(device_t dev)
+static void soc_read_resources(struct device *dev)
 {
 	// HACK: Don't advertise bootblock romstage CAR region, it's broken...
 	ram_resource(dev, 0, 2 * KiB, sdram_size_mb() * KiB - 2 * KiB);
@@ -358,7 +358,7 @@
 		register_bl31_param(&cbtable_param.h);
 }
 
-static void soc_init(device_t dev)
+static void soc_init(struct device *dev)
 {
 	/* Init ECAM, MDIO, PEM, PHY, QLM ... */
 	bdk_boot();
@@ -378,7 +378,7 @@
 		soc_init_atf();
 }
 
-static void soc_final(device_t dev)
+static void soc_final(struct device *dev)
 {
 	watchdog_disable(0);
 }
@@ -392,7 +392,7 @@
 	.scan_bus         = NULL,
 };
 
-static void enable_soc_dev(device_t dev)
+static void enable_soc_dev(struct device *dev)
 {
 	if (dev->path.type == DEVICE_PATH_DOMAIN &&
 		dev->path.domain.domain == 0) {

-- 
To view, visit https://review.coreboot.org/28632
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: Ifa54624664c06c606fb4e083bae98b4accc61be0
Gerrit-Change-Number: 28632
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/20180916/d83e6aa0/attachment-0001.html>


More information about the coreboot-gerrit mailing list