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

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Fri May 4 22:09:39 CEST 2018


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


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

mb/kontron: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Iac341f592acd777fe9ba22cfbca19d4cbdb4916e
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/mainboard/kontron/986lcd-m/mainboard.c
M src/mainboard/kontron/kt690/get_bus_conf.c
M src/mainboard/kontron/kt690/mainboard.c
M src/mainboard/kontron/kt690/mptable.c
M src/mainboard/kontron/ktqm77/mainboard.c
5 files changed, 8 insertions(+), 8 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/26103/1

diff --git a/src/mainboard/kontron/986lcd-m/mainboard.c b/src/mainboard/kontron/986lcd-m/mainboard.c
index d729533..cc32b99 100644
--- a/src/mainboard/kontron/986lcd-m/mainboard.c
+++ b/src/mainboard/kontron/986lcd-m/mainboard.c
@@ -151,7 +151,7 @@
 /* mainboard_enable is executed as first thing after */
 /* enumerate_buses(). */
 
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 	install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 3);
 	hwm_setup();
diff --git a/src/mainboard/kontron/kt690/get_bus_conf.c b/src/mainboard/kontron/kt690/get_bus_conf.c
index dc6833a..b1b7270 100644
--- a/src/mainboard/kontron/kt690/get_bus_conf.c
+++ b/src/mainboard/kontron/kt690/get_bus_conf.c
@@ -57,7 +57,7 @@
 void get_bus_conf(void)
 {
 	u32 apicid_base;
-	device_t dev;
+	struct device *dev;
 	int i;
 
 	if (get_bus_conf_done == 1)
diff --git a/src/mainboard/kontron/kt690/mainboard.c b/src/mainboard/kontron/kt690/mainboard.c
index f01e521..de6c0bb 100644
--- a/src/mainboard/kontron/kt690/mainboard.c
+++ b/src/mainboard/kontron/kt690/mainboard.c
@@ -115,7 +115,7 @@
 {
 	u8 byte;
 	u16 word;
-	device_t sm_dev;
+	struct device *sm_dev;
 
 	/* set ADT 7461 */
 	ADT7461_write_byte(0x0B, 0x50);	/* Local Temperature Hight limit */
@@ -176,7 +176,7 @@
 * enable the dedicated function in dbm690t board.
 * This function called early than rs690_enable.
 *************************************************/
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 	printk(BIOS_INFO, "Mainboard KT690 Enable. dev=0x%p\n", dev);
 
diff --git a/src/mainboard/kontron/kt690/mptable.c b/src/mainboard/kontron/kt690/mptable.c
index 8895163..9515931 100644
--- a/src/mainboard/kontron/kt690/mptable.c
+++ b/src/mainboard/kontron/kt690/mptable.c
@@ -46,7 +46,7 @@
 
 	/* I/O APICs:   APIC ID Version State   Address */
 	{
-		device_t dev;
+		struct device *dev;
 		u32 dword;
 		u8 byte;
 
diff --git a/src/mainboard/kontron/ktqm77/mainboard.c b/src/mainboard/kontron/ktqm77/mainboard.c
index 5a697f0..3a37290 100644
--- a/src/mainboard/kontron/ktqm77/mainboard.c
+++ b/src/mainboard/kontron/ktqm77/mainboard.c
@@ -162,7 +162,7 @@
 /* mainboard_enable is executed as first thing after */
 /* enumerate_buses(). */
 
-static void mainboard_enable(device_t dev)
+static void mainboard_enable(struct device *dev)
 {
 #if IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_YABEL) || \
 	IS_ENABLED(CONFIG_PCI_OPTION_ROM_RUN_REALMODE)
@@ -172,7 +172,7 @@
 
 	unsigned disable = 0;
 	if ((get_option(&disable, "ethernet1") == CB_SUCCESS) && disable) {
-		device_t nic = dev_find_slot(0, PCI_DEVFN(0x1c, 2));
+		struct device *nic = dev_find_slot(0, PCI_DEVFN(0x1c, 2));
 		if (nic) {
 			printk(BIOS_DEBUG, "DISABLE FIRST NIC!\n");
 			nic->enabled = 0;
@@ -180,7 +180,7 @@
 	}
 	disable = 0;
 	if ((get_option(&disable, "ethernet2") == CB_SUCCESS) && disable) {
-		device_t nic = dev_find_slot(0, PCI_DEVFN(0x1c, 3));
+		struct device *nic = dev_find_slot(0, PCI_DEVFN(0x1c, 3));
 		if (nic) {
 			printk(BIOS_DEBUG, "DISABLE SECOND NIC!\n");
 			nic->enabled = 0;

-- 
To view, visit https://review.coreboot.org/26103
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: Iac341f592acd777fe9ba22cfbca19d4cbdb4916e
Gerrit-Change-Number: 26103
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/898b29a4/attachment-0001.html>


More information about the coreboot-gerrit mailing list