aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/via/k8t890/traf_ctrl.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 10:33:10 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 20:25:38 +0000
commitec41dae245df3fd938de0dfce3459f2a85a92753 (patch)
treeebf9fc51b926d8f1292d912169912ba94d3e6739 /src/southbridge/via/k8t890/traf_ctrl.c
parent674f9c451f3c4eefb082c537c4cebf766aad8f57 (diff)
sb/via/k8t890: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I2ff065c863a9d2b480f7432c6280ef59917c8863 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26396 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/via/k8t890/traf_ctrl.c')
-rw-r--r--src/southbridge/via/k8t890/traf_ctrl.c8
1 files changed, 4 insertions, 4 deletions
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 <lib.h>
#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);