diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c index 81d9c9cac..7001a3e4e 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c @@ -1815,7 +1815,7 @@ static int xhci_context ( struct xhci_host *xhci, struct xhci_slot *slot, rc = -ENOMEM; goto err_alloc; } - input = input_vir; + input = (void *)input_vir; memset ( input, 0, len ); /* Populate input context */ @@ -2070,7 +2070,7 @@ int xhci_device_open ( struct xhci_host *xhci, struct xhci_endpoint *ep, int *sl goto err_alloc_context; } #endif - rc = naive_mmap(&context_addr, &context_phy, len, false); + rc = naive_mmap(&context_vir, &context_phy, len, false); if(rc != 0){ USB_LOG_ERR("XHCI %s could not allocate xhci device context\n", xhci->name ); rc = -ENOMEM;