From 823f1a9bbfc5daf72e5f2f76bf2034b250396d9d Mon Sep 17 00:00:00 2001 From: Antonello Dettori Date: Sat, 3 Sep 2016 10:45:33 +0200 Subject: southbridge/via/vt8237r: transition away from device_t Replace the use of the old device_t definition inside southbridge/via/vt8237r. Change-Id: I9c1211e698ef35f56dd71c2c021dea680091c1ee Signed-off-by: Antonello Dettori Reviewed-on: https://review.coreboot.org/16489 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/southbridge/via/vt8237r/early_smbus.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/southbridge/via/vt8237r') diff --git a/src/southbridge/via/vt8237r/early_smbus.c b/src/southbridge/via/vt8237r/early_smbus.c index e53b71ea4f..23f5928e34 100644 --- a/src/southbridge/via/vt8237r/early_smbus.c +++ b/src/southbridge/via/vt8237r/early_smbus.c @@ -144,9 +144,9 @@ void smbus_write_byte(u8 dimm, u8 offset, u8 data) #define PSONREADY_TIMEOUT 0x7fffffff -static device_t get_vt8237_lpc(void) +static pci_devfn_t get_vt8237_lpc(void) { - device_t dev; + pci_devfn_t dev; /* Power management controller */ dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, @@ -169,7 +169,7 @@ static device_t get_vt8237_lpc(void) */ void enable_smbus(void) { - device_t dev; + pci_devfn_t dev; int loops; /* Power management controller */ @@ -258,7 +258,7 @@ void smbus_fixup(const struct mem_controller *ctrl) void vt8237_sb_enable_fid_vid(void) { - device_t dev, devctl; + pci_devfn_t dev, devctl; u16 devid; /* Power management controller */ @@ -315,7 +315,7 @@ void vt8237_sb_enable_fid_vid(void) void enable_rom_decode(void) { - device_t dev; + pci_devfn_t dev; /* Power management controller */ dev = get_vt8237_lpc(); @@ -328,7 +328,7 @@ void enable_rom_decode(void) int acpi_get_sleep_type(void) { - device_t dev; + pci_devfn_t dev; u16 tmp; printk(BIOS_DEBUG, "IN TEST WAKEUP\n"); @@ -353,7 +353,7 @@ int acpi_get_sleep_type(void) #if defined(__GNUC__) void vt8237_early_spi_init(void) { - device_t dev; + pci_devfn_t dev; volatile u16 *spireg; u32 tmp; @@ -410,7 +410,7 @@ int vt8237_early_network_init(struct vt8237_network_rom *rom) { struct vt8237_network_rom n; int i, loops; - device_t dev; + pci_devfn_t dev; u32 tmp; u8 status; u16 *rom_write; -- cgit v1.2.3