diff options
author | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2010-12-07 07:24:01 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-10 17:23:33 -0500 |
commit | 61948ee4d525174cceee2135a38a482124fcc02c (patch) | |
tree | 7aded2caef4e53c08d6a00e86d78e890c3de44cd /drivers/usb | |
parent | 0a91efa2f951d790969dec96fb675ca7869eca83 (diff) |
USB: gadget: Initialize ci13xxx gadget device's coherent DMA mask
dma_alloc_coherent() which is internally called by dma_pool_alloc()
flags a warning if device's coherent DMA mask. Hence initialize
gadget device's coherent DMA mask to it's parent mask.
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/ci13xxx_udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c index d19537a0613d..956fa64f1359 100644 --- a/drivers/usb/gadget/ci13xxx_udc.c +++ b/drivers/usb/gadget/ci13xxx_udc.c | |||
@@ -2624,6 +2624,7 @@ static int udc_probe(struct device *dev, void __iomem *regs, const char *name) | |||
2624 | 2624 | ||
2625 | dev_set_name(&udc->gadget.dev, "gadget"); | 2625 | dev_set_name(&udc->gadget.dev, "gadget"); |
2626 | udc->gadget.dev.dma_mask = dev->dma_mask; | 2626 | udc->gadget.dev.dma_mask = dev->dma_mask; |
2627 | udc->gadget.dev.coherent_dma_mask = dev->coherent_dma_mask; | ||
2627 | udc->gadget.dev.parent = dev; | 2628 | udc->gadget.dev.parent = dev; |
2628 | udc->gadget.dev.release = udc_release; | 2629 | udc->gadget.dev.release = udc_release; |
2629 | 2630 | ||