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

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Fri May 4 20:19:41 CEST 2018


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


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

mb/getac: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ie5ed621423315388e2b8eb3d5433ef2a7a47d602
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/mainboard/getac/p470/acpi_tables.c
M src/mainboard/getac/p470/mainboard.c
M src/mainboard/getac/p470/mainboard.h
3 files changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/26083/1

diff --git a/src/mainboard/getac/p470/acpi_tables.c b/src/mainboard/getac/p470/acpi_tables.c
index 34d6f34..f840605 100644
--- a/src/mainboard/getac/p470/acpi_tables.c
+++ b/src/mainboard/getac/p470/acpi_tables.c
@@ -81,7 +81,7 @@
 	return header->length;
 }
 
-unsigned long mainboard_write_acpi_tables(device_t device,
+unsigned long mainboard_write_acpi_tables(struct device *device,
 					  unsigned long start,
 					  acpi_rsdp_t *rsdp)
 {
diff --git a/src/mainboard/getac/p470/mainboard.c b/src/mainboard/getac/p470/mainboard.c
index 90e8a94..140423e 100644
--- a/src/mainboard/getac/p470/mainboard.c
+++ b/src/mainboard/getac/p470/mainboard.c
@@ -58,7 +58,7 @@
 	// machine. It should set the slot numbers and enable power
 	// limitation for the PCIe slots.
 
-	device_t dev;
+	struct device *dev;
 
 	dev = dev_find_slot(0, PCI_DEVFN(28,0));
 	if (dev) pci_write_config32(dev, 0x54, 0x0010a0e0);
@@ -75,7 +75,7 @@
 }
 
 
-static void mainboard_init(device_t dev)
+static void mainboard_init(struct device *dev)
 {
 	ec_enable();
 	install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_TXT_STRETCH, 0, 3);
@@ -83,7 +83,7 @@
 
 // mainboard_enable is executed as first thing after
 // enumerate_buses(). Is there no mainboard_init()?
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 	dev->ops->init = mainboard_init;
 	dev->ops->write_acpi_tables = mainboard_write_acpi_tables;
diff --git a/src/mainboard/getac/p470/mainboard.h b/src/mainboard/getac/p470/mainboard.h
index 56f5455..3d155c8 100644
--- a/src/mainboard/getac/p470/mainboard.h
+++ b/src/mainboard/getac/p470/mainboard.h
@@ -1,5 +1,5 @@
 struct acpi_rsdp;
 
-unsigned long mainboard_write_acpi_tables(device_t device,
+unsigned long mainboard_write_acpi_tables(struct device *device,
 					  unsigned long start,
 					  struct acpi_rsdp *rsdp);

-- 
To view, visit https://review.coreboot.org/26083
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: Ie5ed621423315388e2b8eb3d5433ef2a7a47d602
Gerrit-Change-Number: 26083
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/91c2be8b/attachment-0001.html>


More information about the coreboot-gerrit mailing list