Commit 7c51247a authored by Raviteja Garimella's avatar Raviteja Garimella Committed by Felipe Balbi

usb: gadget: udc: Provide correct arguments for 'dma_pool_create'

Change the argument from NULL to a struct device for the
dma_pool_create call during dma init.
Signed-off-by: default avatarRaviteja Garimella <raviteja.garimella@broadcom.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 498beb42
......@@ -3097,7 +3097,7 @@ int init_dma_pools(struct udc *dev)
}
/* DMA setup */
dev->data_requests = dma_pool_create("data_requests", NULL,
dev->data_requests = dma_pool_create("data_requests", dev->dev,
sizeof(struct udc_data_dma), 0, 0);
if (!dev->data_requests) {
DBG(dev, "can't get request data pool\n");
......@@ -3108,7 +3108,7 @@ int init_dma_pools(struct udc *dev)
dev->ep[UDC_EP0IN_IX].dma = &dev->regs->ctl;
/* dma desc for setup data */
dev->stp_requests = dma_pool_create("setup requests", NULL,
dev->stp_requests = dma_pool_create("setup requests", dev->dev,
sizeof(struct udc_stp_dma), 0, 0);
if (!dev->stp_requests) {
DBG(dev, "can't get stp request pool\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment