summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/spi.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-07-01 12:37:22 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2015-07-01 16:45:39 -0700
commite420721b47ef5b0d521584d4efc89ff64bd0cd74 (patch)
tree7ae9e850adda27abb38b3d5e0c9400749b2c5950 /drivers/staging/greybus/spi.c
parent3e136cc9e05e1a34d8602a4d4e31c9d93ccbbdf7 (diff)
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/spi.c')
-rw-r--r--drivers/staging/greybus/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c
index 374361889666..306fb074c183 100644
--- a/drivers/staging/greybus/spi.c
+++ b/drivers/staging/greybus/spi.c
@@ -90,7 +90,7 @@ gb_spi_operation_create(struct gb_connection *connection,
/* Response consists only of incoming data */
operation = gb_operation_create(connection, GB_SPI_TYPE_TRANSFER,
- request_size, rx_size);
+ request_size, rx_size, GFP_KERNEL);
if (!operation)
return NULL;