usb: gadget: fsl_udc: Fix dTDs allocation gfp flags
authorBenoit Goby <benoit@android.com>
Tue, 21 Sep 2010 04:19:37 +0000 (21:19 -0700)
committerBenoit Goby <benoit@android.com>
Wed, 13 Oct 2010 23:37:08 +0000 (16:37 -0700)
commit5aca5c3c19cf42b571cb2723b544ac529a04e285
tree57d0d45800af82c546d7fb00fdd528a824c17919
parentcafc989dd8a92797785ad6d313935e136a16b33c
usb: gadget: fsl_udc: Fix dTDs allocation gfp flags

fsl_build_dtd may be called from atomic context. Don't hardcode the gfp
flag to GFP_KERNEL. Pass down to dma_pool_alloc the flag used by the
function driver to enqueue the request.

Change-Id: Iba1ccf73bbcd648b8c13228157431d2ce52979ef
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/fsl_udc_core.c