Commit e413614b authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: drop gfp_mask from gb_message_send()

We will only send messages from process context.  Drop the gfp_mask
parameter from gb_message_send(), and just supply GFP_KERNEL to the
host driver's buffer_send method.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 57248fac
...@@ -195,7 +195,7 @@ gb_pending_operation_find(struct gb_connection *connection, u16 operation_id) ...@@ -195,7 +195,7 @@ gb_pending_operation_find(struct gb_connection *connection, u16 operation_id)
return found ? operation : NULL; return found ? operation : NULL;
} }
static int gb_message_send(struct gb_message *message, gfp_t gfp_mask) static int gb_message_send(struct gb_message *message)
{ {
struct gb_connection *connection = message->operation->connection; struct gb_connection *connection = message->operation->connection;
u16 dest_cport_id = connection->interface_cport_id; u16 dest_cport_id = connection->interface_cport_id;
...@@ -207,7 +207,7 @@ static int gb_message_send(struct gb_message *message, gfp_t gfp_mask) ...@@ -207,7 +207,7 @@ static int gb_message_send(struct gb_message *message, gfp_t gfp_mask)
dest_cport_id, dest_cport_id,
message->header, message->header,
message->size, message->size,
gfp_mask); GFP_KERNEL);
if (IS_ERR(cookie)) if (IS_ERR(cookie))
ret = PTR_ERR(cookie); ret = PTR_ERR(cookie);
else else
...@@ -561,7 +561,7 @@ int gb_operation_request_send(struct gb_operation *operation, ...@@ -561,7 +561,7 @@ int gb_operation_request_send(struct gb_operation *operation,
/* All set, send the request */ /* All set, send the request */
gb_operation_result_set(operation, -EINPROGRESS); gb_operation_result_set(operation, -EINPROGRESS);
ret = gb_message_send(operation->request, GFP_KERNEL); ret = gb_message_send(operation->request);
if (ret || callback) if (ret || callback)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment