aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/via/vx800/vga.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/vga.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/vga.c')
-rw-r--r--src/northbridge/via/vx800/vga.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/northbridge/via/vx800/vga.c b/src/northbridge/via/vx800/vga.c
index 4109f62546..447c762a9a 100644
--- a/src/northbridge/via/vx800/vga.c
+++ b/src/northbridge/via/vx800/vga.c
@@ -72,7 +72,7 @@ static int via_vx800_int15_handler(void)
* N: Frame Buffer Size 2^N MB
*/
u8 i;
- device_t dev;
+ struct device *dev;
dev = dev_find_slot(0, PCI_DEVFN(0, 3));
i = pci_read_config8(dev, 0xa1);
i = (i & 0x70);
@@ -124,7 +124,7 @@ static int via_vx800_int15_handler(void)
#ifdef UNUSED_CODE
static void write_protect_vgabios(void)
{
- device_t dev;
+ struct device *dev;
printk(BIOS_INFO, "write_protect_vgabios\n");
/* there are two possible devices. Just do both. */
@@ -149,7 +149,7 @@ static void vga_enable_console(void)
}
extern u8 acpi_sleep_type;
-static void vga_init(device_t dev)
+static void vga_init(struct device *dev)
{
uint8_t reg8;