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@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__); }