From: Johan Hovold Date: Tue, 15 Sep 2015 08:48:00 +0000 (+0200) Subject: greybus: svc: fix version response X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59832931cbafa9211ec9ff8434b6d914f82f0f18;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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; }