greybus: fix version check
authorAlex Elder <elder@linaro.org>
Sat, 27 Sep 2014 01:55:34 +0000 (20:55 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 30 Sep 2014 01:07:22 +0000 (18:07 -0700)
commit01e8280150a2ef330f082a996479b96d75164353
treeb8e8fd2824dfef704172000c1a2fe43a332f38a8
parent72b0ffc019137b4877145ef7143cd69a6194b9c6
greybus: fix version check

When we read a module manifest we are required to verify that its
version is compatible with the version the present code is able
to parse.  All that's required is a check of the major version
number.  If the manifest's major version is greater than the
software, the software can't assume it can parse it.  All new
code must be able to parse all old versions of the format.  And
any difference in minor version is supposed to have no effect
on parsability.

Update the version check to enforce this policy, and reword the
error message to do a better job of explaining the situation.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/core.c