summaryrefslogtreecommitdiff
path: root/src/device/pci_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/pci_device.c')
-rw-r--r--src/device/pci_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index b4a8a5ce0e..e35c22c113 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -726,7 +726,8 @@ void pci_bus_reset(struct bus *bus)
delay(1);
}
-void pci_dev_set_subsystem(struct device *dev, unsigned vendor, unsigned device)
+void pci_dev_set_subsystem(struct device *dev, unsigned int vendor,
+ unsigned int device)
{
pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
((device & 0xffff) << 16) | (vendor & 0xffff));