OSDN Git Service

usb: gadget: udc: lpc32xx: allocate descriptor with GFP_ATOMIC
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / usb / gadget / udc / lpc32xx_udc.c
index 00b5006..90d24f6 100644 (file)
@@ -964,8 +964,7 @@ static struct lpc32xx_usbd_dd_gad *udc_dd_alloc(struct lpc32xx_udc *udc)
        dma_addr_t                      dma;
        struct lpc32xx_usbd_dd_gad      *dd;
 
-       dd = (struct lpc32xx_usbd_dd_gad *) dma_pool_alloc(
-                       udc->dd_cache, (GFP_KERNEL | GFP_DMA), &dma);
+       dd = dma_pool_alloc(udc->dd_cache, GFP_ATOMIC | GFP_DMA, &dma);
        if (dd)
                dd->this_dma = dma;