[coreboot-gerrit] Change in coreboot[master]: /via/k8t890: Get rid of device_t
Elyes HAOUAS (Code Review)
gerrit at coreboot.org
Sat May 19 10:33:44 CEST 2018
Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/26396
Change subject: /via/k8t890: Get rid of device_t
......................................................................
/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 at noos.fr>
---
M src/southbridge/via/k8t890/ctrl.c
M src/southbridge/via/k8t890/k8t890.h
M src/southbridge/via/k8t890/traf_ctrl.c
3 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/26396/1
diff --git a/src/southbridge/via/k8t890/ctrl.c b/src/southbridge/via/k8t890/ctrl.c
index f5e248d..b55e26a 100644
--- a/src/southbridge/via/k8t890/ctrl.c
+++ b/src/southbridge/via/k8t890/ctrl.c
@@ -162,7 +162,7 @@
/* VT8237R specific configuration other SB are done in their own directories */
- device_t devsb = dev_find_device(PCI_VENDOR_ID_VIA,
+ struct device *devsb = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VT8237R_LPC, 0);
if (devsb) {
vt8237r_vlink_init(dev);
diff --git a/src/southbridge/via/k8t890/k8t890.h b/src/southbridge/via/k8t890/k8t890.h
index 8bc76ba..8bb52db 100644
--- a/src/southbridge/via/k8t890/k8t890.h
+++ b/src/southbridge/via/k8t890/k8t890.h
@@ -44,7 +44,7 @@
#include <device/device.h>
#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 b6b52a1..de26e22 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 @@
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 @@
#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 @@
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);
--
To view, visit https://review.coreboot.org/26396
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ff065c863a9d2b480f7432c6280ef59917c8863
Gerrit-Change-Number: 26396
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180519/467c7f07/attachment.html>
More information about the coreboot-gerrit
mailing list