Skip to content

Commit

Permalink
usb: gadget: udc: Provide correct arguments for 'dma_pool_create'
Browse files Browse the repository at this point in the history
Change the argument from NULL to a struct device for the
dma_pool_create call during dma init.

Signed-off-by: Raviteja Garimella <raviteja.garimella@broadcom.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
  • Loading branch information
Raviteja Garimella authored and Felipe Balbi committed Jun 13, 2017
1 parent 498beb4 commit 7c51247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/gadget/udc/snps_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit 7c51247

Please sign in to comment.