summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/usb.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-07-01 10:37:22 (GMT)
committerGreg Kroah-Hartman <gregkh@google.com>2015-07-01 23:45:39 (GMT)
commite420721b47ef5b0d521584d4efc89ff64bd0cd74 (patch)
tree7ae9e850adda27abb38b3d5e0c9400749b2c5950 /drivers/staging/greybus/usb.c
parent3e136cc9e05e1a34d8602a4d4e31c9d93ccbbdf7 (diff)
downloadlinux-e420721b47ef5b0d521584d4efc89ff64bd0cd74.tar.xz
greybus: operation: allow atomic operation allocations
Add gfp mask argument to gb_operation_create to allow operations to be allocated in atomic context. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/usb.c')
-rw-r--r--drivers/staging/greybus/usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/usb.c b/drivers/staging/greybus/usb.c
index 888f514..e49fffd 100644
--- a/drivers/staging/greybus/usb.c
+++ b/drivers/staging/greybus/usb.c
@@ -131,7 +131,8 @@ static int urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags)
operation = gb_operation_create(dev->connection,
GB_USB_TYPE_URB_ENQUEUE,
sizeof(*request) +
- urb->transfer_buffer_length, 0);
+ urb->transfer_buffer_length, 0,
+ GFP_KERNEL);
if (!operation)
return -ENODEV;