summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/i2c.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/i2c.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/i2c.c')
-rw-r--r--drivers/staging/greybus/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/i2c.c b/drivers/staging/greybus/i2c.c
index 5eb7703599d6..9514e69d0d4b 100644
--- a/drivers/staging/greybus/i2c.c
+++ b/drivers/staging/greybus/i2c.c
@@ -146,7 +146,7 @@ gb_i2c_operation_create(struct gb_connection *connection,
/* Response consists only of incoming data */
operation = gb_operation_create(connection, GB_I2C_TYPE_TRANSFER,
- request_size, data_in_size);
+ request_size, data_in_size, GFP_KERNEL);
if (!operation)
return NULL;