From: Alex Elder Date: Mon, 1 Dec 2014 13:53:10 +0000 (-0600) Subject: greybus: drop gfp_mask from gb_message_send() X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1805 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e413614b01763a84940168f253426fca89cdc38c;p=karo-tx-linux.git 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: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c index 0841ab271496..75900d3129be 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/staging/greybus/operation.c @@ -195,7 +195,7 @@ gb_pending_operation_find(struct gb_connection *connection, u16 operation_id) 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; 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) dest_cport_id, message->header, message->size, - gfp_mask); + GFP_KERNEL); if (IS_ERR(cookie)) ret = PTR_ERR(cookie); else @@ -561,7 +561,7 @@ int gb_operation_request_send(struct gb_operation *operation, /* All set, send the request */ gb_operation_result_set(operation, -EINPROGRESS); - ret = gb_message_send(operation->request, GFP_KERNEL); + ret = gb_message_send(operation->request); if (ret || callback) return ret;