[coreboot-gerrit] Change in coreboot[master]: soc/imgtec/pistachio: Get rid of device_t

Patrick Georgi (Code Review) gerrit at coreboot.org
Mon Jun 4 11:18:26 CEST 2018


Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/26540 )

Change subject: soc/imgtec/pistachio: Get rid of device_t
......................................................................

soc/imgtec/pistachio: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ia36b4ef7d66c50a044bc51f452ac8b7c7ff14323
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
Reviewed-on: https://review.coreboot.org/26540
Tested-by: build bot (Jenkins) <no-reply at coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi at google.com>
---
M src/soc/imgtec/pistachio/soc.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  build bot (Jenkins): Verified
  Patrick Georgi: Looks good to me, approved



diff --git a/src/soc/imgtec/pistachio/soc.c b/src/soc/imgtec/pistachio/soc.c
index 948a906..156d1de 100644
--- a/src/soc/imgtec/pistachio/soc.c
+++ b/src/soc/imgtec/pistachio/soc.c
@@ -17,13 +17,13 @@
 #include <device/device.h>
 #include <symbols.h>
 
-static void soc_read_resources(device_t dev)
+static void soc_read_resources(struct device *dev)
 {
 	ram_resource(dev, 0, (uintptr_t)_dram / KiB,
 		     (CONFIG_DRAM_SIZE_MB * MiB) / KiB);
 }
 
-static void soc_init(device_t dev)
+static void soc_init(struct device *dev)
 {
 	printk(BIOS_INFO, "CPU: Imgtec Pistachio\n");
 }
@@ -33,7 +33,7 @@
 	.init		= soc_init,
 };
 
-static void enable_soc_dev(device_t dev)
+static void enable_soc_dev(struct device *dev)
 {
 	dev->ops = &soc_ops;
 }

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia36b4ef7d66c50a044bc51f452ac8b7c7ff14323
Gerrit-Change-Number: 26540
Gerrit-PatchSet: 2
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
Gerrit-Reviewer: Patrick Georgi <pgeorgi at google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180604/2a0a5314/attachment.html>


More information about the coreboot-gerrit mailing list