summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/i2c.c
diff options
context:
space:
mode:
authorJohan Hovold2015-07-01 12:37:22 +0200
committerGreg Kroah-Hartman2015-07-02 01:45:39 +0200
commite420721b47ef5b0d521584d4efc89ff64bd0cd74 (patch)
tree7ae9e850adda27abb38b3d5e0c9400749b2c5950 /drivers/staging/greybus/i2c.c
parentgreybus: operation/esx: fix message-cancellation lifetime bugs (diff)
downloadkernel-qcow2-linux-e420721b47ef5b0d521584d4efc89ff64bd0cd74.tar.gz
kernel-qcow2-linux-e420721b47ef5b0d521584d4efc89ff64bd0cd74.tar.xz
kernel-qcow2-linux-e420721b47ef5b0d521584d4efc89ff64bd0cd74.zip
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;