summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/init.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-06-16 09:16:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-17 16:43:09 -0700
commit2c9b48ac3cb2cd2c84c43f235c65b7fc238f6f1f (patch)
tree9eac8a297ba1c3867f7cf10260aee7580ead7fbf /drivers/misc/mei/init.c
parenta151427ed086952cc28f1d5f1cda84c33e48e358 (diff)
mei: support HBM versioning
Driver can work properly if device support driver HBM version or driver can downgrade its supported HBM version level Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r--drivers/misc/mei/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c
index f580d30bb78..79e9e1c3056 100644
--- a/drivers/misc/mei/init.c
+++ b/drivers/misc/mei/init.c
@@ -106,8 +106,7 @@ int mei_start(struct mei_device *dev)
goto err;
}
- if (dev->version.major_version != HBM_MAJOR_VERSION ||
- dev->version.minor_version != HBM_MINOR_VERSION) {
+ if (!mei_hbm_version_is_supported(dev)) {
dev_dbg(&dev->pdev->dev, "MEI start failed.\n");
goto err;
}