[coreboot-gerrit] Change in coreboot[master]: mainboard/emulation: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Fri Jun 8 21:16:18 CEST 2018


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


Change subject: mainboard/emulation: Get rid of device_t
......................................................................

mainboard/emulation: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ifbfc6c5bba31838dd29f3e3fcfedc5a7ad15a25d
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/mainboard/emulation/qemu-armv7/mainboard.c
M src/mainboard/emulation/qemu-i440fx/acpi.h
M src/mainboard/emulation/qemu-i440fx/mainboard.c
M src/mainboard/emulation/qemu-power8/mainboard.c
M src/mainboard/emulation/qemu-q35/mainboard.c
M src/mainboard/emulation/qemu-riscv/mainboard.c
M src/mainboard/emulation/spike-riscv/mainboard.c
7 files changed, 7 insertions(+), 7 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/26989/1

diff --git a/src/mainboard/emulation/qemu-armv7/mainboard.c b/src/mainboard/emulation/qemu-armv7/mainboard.c
index 39c2361..d91d77a 100644
--- a/src/mainboard/emulation/qemu-armv7/mainboard.c
+++ b/src/mainboard/emulation/qemu-armv7/mainboard.c
@@ -50,7 +50,7 @@
 	set_vbe_mode_info_valid(&edid, framebuffer);
 }
 
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 	int discovered;
 	if (!dev) {
diff --git a/src/mainboard/emulation/qemu-i440fx/acpi.h b/src/mainboard/emulation/qemu-i440fx/acpi.h
index f2ffdeb..14a8a7a 100644
--- a/src/mainboard/emulation/qemu-i440fx/acpi.h
+++ b/src/mainboard/emulation/qemu-i440fx/acpi.h
@@ -1 +1 @@
-unsigned long northbridge_write_acpi_tables(device_t device, unsigned long start);
+unsigned long northbridge_write_acpi_tables(struct device *device, unsigned long start);
diff --git a/src/mainboard/emulation/qemu-i440fx/mainboard.c b/src/mainboard/emulation/qemu-i440fx/mainboard.c
index 63b1833..b2439bb 100644
--- a/src/mainboard/emulation/qemu-i440fx/mainboard.c
+++ b/src/mainboard/emulation/qemu-i440fx/mainboard.c
@@ -26,7 +26,7 @@
 	11, 10, 10, 11,
 };
 
-static void qemu_nb_init(device_t dev)
+static void qemu_nb_init(struct device *dev)
 {
 	/* Map memory at 0xc0000 - 0xfffff */
 	int i;
diff --git a/src/mainboard/emulation/qemu-power8/mainboard.c b/src/mainboard/emulation/qemu-power8/mainboard.c
index 3c86fad..6d75bb1 100644
--- a/src/mainboard/emulation/qemu-power8/mainboard.c
+++ b/src/mainboard/emulation/qemu-power8/mainboard.c
@@ -17,7 +17,7 @@
 #include <device/device.h>
 #include <cbmem.h>
 
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 
 	if (!dev) {
diff --git a/src/mainboard/emulation/qemu-q35/mainboard.c b/src/mainboard/emulation/qemu-q35/mainboard.c
index d107c11..9b93751 100644
--- a/src/mainboard/emulation/qemu-q35/mainboard.c
+++ b/src/mainboard/emulation/qemu-q35/mainboard.c
@@ -43,7 +43,7 @@
 	return &gfx_controller_info;
 }
 
-static void qemu_nb_init(device_t dev)
+static void qemu_nb_init(struct device *dev)
 {
 	/* Map memory at 0xc0000 - 0xfffff */
 	int i;
diff --git a/src/mainboard/emulation/qemu-riscv/mainboard.c b/src/mainboard/emulation/qemu-riscv/mainboard.c
index b0e00e8..7061bcf 100644
--- a/src/mainboard/emulation/qemu-riscv/mainboard.c
+++ b/src/mainboard/emulation/qemu-riscv/mainboard.c
@@ -17,7 +17,7 @@
 #include <device/device.h>
 #include <cbmem.h>
 
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 
 	if (!dev) {
diff --git a/src/mainboard/emulation/spike-riscv/mainboard.c b/src/mainboard/emulation/spike-riscv/mainboard.c
index 6ccbd93..5d2b0b9 100644
--- a/src/mainboard/emulation/spike-riscv/mainboard.c
+++ b/src/mainboard/emulation/spike-riscv/mainboard.c
@@ -17,7 +17,7 @@
 #include <device/device.h>
 #include <cbmem.h>
 
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 	/*
 	 * Size of the emulated system RAM. On hardware, this would be external

-- 
To view, visit https://review.coreboot.org/26989
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: Ifbfc6c5bba31838dd29f3e3fcfedc5a7ad15a25d
Gerrit-Change-Number: 26989
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/20180608/0c5e1f9d/attachment.html>


More information about the coreboot-gerrit mailing list