[coreboot-gerrit] Change in ...coreboot[master]: soc/amd/stoneyridge: Get rid of device_t

HAOUAS Elyes (Code Review) gerrit at coreboot.org
Wed Dec 5 11:04:48 CET 2018


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


Change subject: soc/amd/stoneyridge: Get rid of device_t
......................................................................

soc/amd/stoneyridge: Get rid of device_t

Use of device_t is deprecated.

Change-Id: I6d6dce29591f134f64983387c3b268019d52a602
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, 10 insertions(+), 2 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/44/30044/1

diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h
index 32756cd..205d977 100644
--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h
+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h
@@ -435,7 +435,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 fa9e483..4412729 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -703,7 +703,11 @@
 	sb_print_pmxc0_status();
 }
 
-void sb_enable(device_t dev)
+#ifdef __SIMPLE_DEVICE__
+void sb_enable(pci_devfn_t dev)
+#else
+void sb_enable(struct device *dev)
+#endif
 {
 	printk(BIOS_DEBUG, "%s\n", __func__);
 }

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6d6dce29591f134f64983387c3b268019d52a602
Gerrit-Change-Number: 30044
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/20181205/7a524417/attachment-0001.html>


More information about the coreboot-gerrit mailing list