aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/via/vx800/northbridge.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-20 10:59:17 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 14:01:33 +0000
commit59b8e4f511e299f6ef189b6a8fe50a4f23e84f4d (patch)
treeb188d2678c795d92f0eea92ef28ca94f9b46b54c /src/northbridge/via/vx800/northbridge.c
parente58a782c113c98c02f070cfb0c9c910902833e9b (diff)
nb/via/vx800: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Ib432d3c3ce2788b0138a1b0e852385ab4f9b65ee Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26425 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/northbridge/via/vx800/northbridge.c')
-rw-r--r--src/northbridge/via/vx800/northbridge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/via/vx800/northbridge.c b/src/northbridge/via/vx800/northbridge.c
index 609abf88c1..2f1ddc19c4 100644
--- a/src/northbridge/via/vx800/northbridge.c
+++ b/src/northbridge/via/vx800/northbridge.c
@@ -33,7 +33,7 @@
/* !!FIXME!! I declared this to fix the build. */
u8 acpi_sleep_type = 0;
-static void memctrl_init(device_t dev)
+static void memctrl_init(struct device *dev)
{
/*
set VGA in uma_ram_setting.c, not in this function.
@@ -51,13 +51,13 @@ static const struct pci_driver memctrl_driver __pci_driver = {
.device = PCI_DEVICE_ID_VIA_VX855_MEMCTRL,
};
-static void pci_domain_set_resources(device_t dev)
+static void pci_domain_set_resources(struct device *dev)
{
/*
* the order is important to find the correct RAM size.
*/
u8 ramregs[] = { 0x43, 0x42, 0x41, 0x40 };
- device_t mc_dev;
+ struct device *mc_dev;
u32 pci_tolm;
u8 reg;
@@ -124,7 +124,7 @@ static struct device_operations pci_domain_ops = {
.scan_bus = pci_domain_scan_bus,
};
-static void cpu_bus_init(device_t dev)
+static void cpu_bus_init(struct device *dev)
{
initialize_cpus(dev->link_list);
}