From: Viresh Kumar Date: Tue, 11 Aug 2015 02:06:14 +0000 (+0530) Subject: greybus: svc: preserve major/minor of protocol supported by SVC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ea959e3911e0c9ae49eb855d7b4f744349eb977;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: svc: preserve major/minor of protocol supported by SVC These weren't preserved earlier, save them in the connection structure instead of creating its own fields.. Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index 17ffb1353fb4..025b2bad9428 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -11,8 +11,6 @@ struct gb_svc { struct gb_connection *connection; - u8 version_major; - u8 version_minor; }; static struct ida greybus_svc_device_id_map; @@ -163,6 +161,9 @@ static int gb_svc_version_request(struct gb_operation *op) return -ENOTSUPP; } + connection->module_major = version->major; + connection->module_minor = version->minor; + if (!gb_operation_response_alloc(op, sizeof(*version), GFP_KERNEL)) { dev_err(dev, "%s: error allocating response\n", __func__);