From 59832931cbafa9211ec9ff8434b6d914f82f0f18 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 15 Sep 2015 10:48:00 +0200 Subject: [PATCH] greybus: svc: fix version response The SVC-protocol driver currently accepts the version offered by the SVC, but still responded with a hard-coded version. Signed-off-by: Johan Hovold Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/svc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index 5a130e59f075..075d81d20cb8 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -278,8 +278,9 @@ static int gb_svc_version_request(struct gb_operation *op) } version = op->response->payload; - version->major = GB_SVC_VERSION_MAJOR; - version->minor = GB_SVC_VERSION_MINOR; + version->major = connection->module_major; + version->minor = connection->module_minor; + return 0; } -- 2.20.1