Skip to content

Commit

Permalink
Compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed May 25, 2024
1 parent 8f3c7d7 commit 79385a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/chipset/intel_piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ piix_init(const device_t *info)
sff_set_irq_mode(dev->bm[1], IRQ_MODE_MIRQ_0);

if (dev->type >= 3) {
dev->usb = device_add_parameters(&usb_device, &params);
dev->usb = device_add_params(&usb_device, &params);
uhci_register_usb(dev->usb);
}

Expand Down
4 changes: 2 additions & 2 deletions src/chipset/via_pipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1662,11 +1662,11 @@ pipc_init(const device_t *info)
acpi_set_trap_update(dev->acpi, pipc_trap_update_586, dev);
}

dev->usb[0] = device_add_inst_parameters(&usb_device, 1, &usb_params);
dev->usb[0] = device_add_inst_params(&usb_device, 1, &usb_params);
uhci_register_usb(dev->usb[0]);
if (dev->local >= VIA_PIPC_686A) {
usb_params.pci_conf = &dev->usb_regs[1][0];
dev->usb[1] = device_add_inst_parameters(&usb_device, 2, &usb_params);
dev->usb[1] = device_add_inst_params(&usb_device, 2, &usb_params);
uhci_register_usb(dev->usb[1]);

dev->ac97 = device_add(&ac97_via_device);
Expand Down
8 changes: 4 additions & 4 deletions src/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ usb_close(void *priv)
}

static void *
usb_init_ext(UNUSED(const device_t *info), void* params)
usb_init(UNUSED(const device_t *info))
{
usb_t *dev;

Expand All @@ -462,7 +462,7 @@ usb_init_ext(UNUSED(const device_t *info), void* params)
ohci_mmio_read, NULL, NULL,
ohci_mmio_write, NULL, NULL,
NULL, MEM_MAPPING_EXTERNAL, dev);
dev->usb_uhci_priv = usb_uhci_init_ext(info, params);
dev->usb_uhci_priv = usb_uhci_init_ext(info, (void*)info->local);
usb_reset(dev);

return dev;
Expand All @@ -471,9 +471,9 @@ usb_init_ext(UNUSED(const device_t *info), void* params)
const device_t usb_device = {
.name = "Universal Serial Bus",
.internal_name = "usb",
.flags = DEVICE_PCI | DEVICE_EXTPARAMS,
.flags = DEVICE_PCI,
.local = 0,
{ .init_ext = usb_init_ext, },
{ .init = usb_init, },
.close = usb_close,
.reset = usb_reset,
{ .available = NULL },
Expand Down

0 comments on commit 79385a7

Please sign in to comment.