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>
Reviewed-on: https://review.coreboot.org/16489
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Antonello Dettori 2016-09-03 10:45:33 +02:00 committed by Martin Roth
parent 1a9da7acf6
commit 823f1a9bbf
1 changed files with 8 additions and 8 deletions

View File

@ -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;