aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/via/vt8237r/usb.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 10:29:50 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 20:26:01 +0000
commitbcb124e0098156b0d7f03589cf631aa3738a0dae (patch)
tree2eb0311de04242b7a272067072cb9e738de5bfa1 /src/southbridge/via/vt8237r/usb.c
parentec41dae245df3fd938de0dfce3459f2a85a92753 (diff)
sb/via/vt8237r: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Ic4137bc4008d08e0e0d002e52c353fc29355ccb1 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26395 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/via/vt8237r/usb.c')
-rw-r--r--src/southbridge/via/vt8237r/usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/southbridge/via/vt8237r/usb.c b/src/southbridge/via/vt8237r/usb.c
index 057a07ddae..42a0afe4a5 100644
--- a/src/southbridge/via/vt8237r/usb.c
+++ b/src/southbridge/via/vt8237r/usb.c
@@ -154,7 +154,8 @@ static void vt8237_usb_ii_read_resources(struct device *dev)
return;
}
-static void vt8237_set_subsystem(device_t dev, unsigned vendor, unsigned device)
+static void vt8237_set_subsystem(struct device *dev, unsigned vendor,
+ unsigned device)
{
pci_write_config32(dev, 0x42, pci_read_config32(dev, 0x42) | 0x10);
pci_write_config16(dev, 0x2c, vendor);