Antonello Dettori (dev@dettori.io) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16489
-gerrit
commit f8af45600860578f559bb116d28e6181b131274a Author: Antonello Dettori dev@dettori.io Date: Sat Sep 3 10:45:33 2016 +0200
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 dev@dettori.io --- src/southbridge/via/vt8237r/early_smbus.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/southbridge/via/vt8237r/early_smbus.c b/src/southbridge/via/vt8237r/early_smbus.c index e53b71e..23f5928 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;