Skip to content

Commit

Permalink
[xhci] Fix mmio_buffer_init argument order
Browse files Browse the repository at this point in the history
Test: boot and make sure USB keyboard works
Change-Id: I3414dbd0cfb1a2d71c7c24f6be19f58268b47092
  • Loading branch information
dgstevens authored and CQ bot account: [email protected] committed Oct 2, 2018
1 parent c76c236 commit dee82b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/dev/usb/xhci/usb-xhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static zx_status_t usb_xhci_bind_pci(zx_device_t* parent, pci_protocol_t* pci) {
goto error_return;
}
ZX_ASSERT(bar.type == ZX_PCI_BAR_TYPE_MMIO);
status = mmio_buffer_init(&xhci->mmio, 0, bar.handle, bar.size, ZX_CACHE_POLICY_UNCACHED);
status = mmio_buffer_init(&xhci->mmio, 0, bar.size, bar.handle, ZX_CACHE_POLICY_UNCACHED);
if (status != ZX_OK) {
zxlogf(ERROR, "usb_xhci_bind could not map bar\n");
goto error_return;
Expand Down

0 comments on commit dee82b9

Please sign in to comment.