usb: gadget: Fix dTDs allocation gfp flags
authorBenoit Goby <benoit@android.com>
Tue, 21 Sep 2010 04:19:37 +0000 (21:19 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:51:57 +0000 (16:51 -0700)
commitc2bb419de5a1cb08263656089511f2b49ea56667
tree9606ea50b4b2fe570644ccf32f830dc9dfd5a3f5
parent2b0f5d2b8ca3fb2c6823222647c72303feca02e2
usb: gadget: 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