From ec41dae245df3fd938de0dfce3459f2a85a92753 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sat, 19 May 2018 10:33:10 +0200 Subject: sb/via/k8t890: Get rid of device_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use of device_t has been abandoned in ramstage. Change-Id: I2ff065c863a9d2b480f7432c6280ef59917c8863 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26396 Reviewed-by: Kyösti Mälkki Tested-by: build bot (Jenkins) --- src/southbridge/via/k8t890/ctrl.c | 5 +++-- src/southbridge/via/k8t890/k8t890.h | 2 +- src/southbridge/via/k8t890/traf_ctrl.c | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src/southbridge') diff --git a/src/southbridge/via/k8t890/ctrl.c b/src/southbridge/via/k8t890/ctrl.c index f5e248dea0..61fa28ed19 100644 --- a/src/southbridge/via/k8t890/ctrl.c +++ b/src/southbridge/via/k8t890/ctrl.c @@ -162,8 +162,9 @@ static void ctrl_init(struct device *dev) /* VT8237R specific configuration other SB are done in their own directories */ - device_t devsb = dev_find_device(PCI_VENDOR_ID_VIA, - PCI_DEVICE_ID_VIA_VT8237R_LPC, 0); + struct device *devsb = dev_find_device(PCI_VENDOR_ID_VIA, + PCI_DEVICE_ID_VIA_VT8237R_LPC, + 0); if (devsb) { vt8237r_vlink_init(dev); k8x8xx_vt8237r_cfg(dev, devsb); diff --git a/src/southbridge/via/k8t890/k8t890.h b/src/southbridge/via/k8t890/k8t890.h index 8bc76ba927..8bb52db4c5 100644 --- a/src/southbridge/via/k8t890/k8t890.h +++ b/src/southbridge/via/k8t890/k8t890.h @@ -44,7 +44,7 @@ int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos); #include #if 0 extern void writeback(struct device *dev, u16 where, u8 what); -extern void dump_south(device_t dev); +extern void dump_south(struct device *dev); #endif #endif diff --git a/src/southbridge/via/k8t890/traf_ctrl.c b/src/southbridge/via/k8t890/traf_ctrl.c index b6b52a183e..de26e225a5 100644 --- a/src/southbridge/via/k8t890/traf_ctrl.c +++ b/src/southbridge/via/k8t890/traf_ctrl.c @@ -23,7 +23,7 @@ #include #include "k8t890.h" -static void mmconfig_set_resources(device_t dev) +static void mmconfig_set_resources(struct device *dev) { struct resource *resource; u8 reg; @@ -44,7 +44,7 @@ static void mmconfig_set_resources(device_t dev) pci_dev_set_resources(dev); } -static void apic_mmconfig_read_resources(device_t dev) +static void apic_mmconfig_read_resources(struct device *dev) { struct resource *res; pci_dev_read_resources(dev); @@ -122,7 +122,7 @@ static void traf_ctrl_enable_k8t890(struct device *dev) #if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) -static void southbridge_acpi_fill_ssdt_generator(device_t dev) { +static void southbridge_acpi_fill_ssdt_generator(struct device *dev) { amd_generate_powernow(0, 0, 0); acpigen_write_mainboard_resources("\\_SB.PCI0.MBRS", "_CRS"); } @@ -156,7 +156,7 @@ static const struct device_operations traf_ctrl_ops_t = { unsigned long acpi_fill_mcfg(unsigned long current) { - device_t dev; + struct device *dev; struct resource *res; dev = dev_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_K8T890CE_5, 0); -- cgit v1.2.3