[coreboot-gerrit] Change in ...coreboot[master]: soc/amd/stoneyridge: Don't use device_t

HAOUAS Elyes (Code Review) gerrit at coreboot.org
Sun Dec 2 21:12:49 CET 2018


HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30006


Change subject: soc/amd/stoneyridge: Don't use device_t
......................................................................

soc/amd/stoneyridge: Don't use device_t

Use of device_t is deprecated.

Change-Id: I7ef5fc14672da70e90952f7e844f4e583ca31506
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/soc/amd/stoneyridge/include/soc/southbridge.h
M src/soc/amd/stoneyridge/southbridge.c
2 files changed, 13 insertions(+), 2 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/30006/1

diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h
index cb9c4c6..96193f0 100644
--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h
+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h
@@ -426,7 +426,11 @@
 void configure_stoneyridge_i2c(void);
 void sb_clk_output_48Mhz(void);
 void sb_disable_4dw_burst(void);
-void sb_enable(device_t dev);
+#ifdef __SIMPLE_DEVICE__
+void sb_enable(pci_devfn_t dev);
+#else
+void sb_enable(struct device *dev);
+#endif
 void southbridge_final(void *chip_info);
 void southbridge_init(void *chip_info);
 void sb_lpc_port80(void);
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index 6157e50..3516fed 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -703,10 +703,17 @@
 	sb_print_pmxc0_status();
 }
 
-void sb_enable(device_t dev)
+#ifdef __SIMPLE_DEVICE__
+void sb_enable(pci_devfn_t dev)
 {
 	printk(BIOS_DEBUG, "%s\n", __func__);
 }
+#else
+void sb_enable(struct device *dev)
+{
+	printk(BIOS_DEBUG, "%s\n", __func__);
+}
+#endif
 
 static void sb_init_acpi_ports(void)
 {

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7ef5fc14672da70e90952f7e844f4e583ca31506
Gerrit-Change-Number: 30006
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas at noos.fr>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181202/4838edb2/attachment.html>


More information about the coreboot-gerrit mailing list