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@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) {