diff options
author | Thierry Escande <thierry.escande@collabora.com> | 2017-02-14 20:58:00 +0100 |
---|---|---|
committer | Benson Leung <bleung@chromium.org> | 2017-06-27 17:22:28 +0200 |
commit | a27b8f31cb7929bfb8dc6ca3e6b7a0a39609d7f3 (patch) | |
tree | 7bf631acf0be05fc96e2d89202851733fcea4702 /drivers/platform | |
parent | platform/chrome: cros_ec_lightbar - Avoid I2C xfer to EC during suspend (diff) | |
download | linux-a27b8f31cb7929bfb8dc6ca3e6b7a0a39609d7f3.tar.xz linux-a27b8f31cb7929bfb8dc6ca3e6b7a0a39609d7f3.zip |
cros_ec: Don't return error when checking command version
With this patch, cros_ec_query_all() does not return an error if it
fails to check for MKBP events support. Instead, the EC device structure
indicates that it does not support MKBP events (mkbp_event_supported
field) and cros_ec_query_all() returns 0.
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/chrome/cros_ec_proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c index 7428c2b965bb..8f57500d2b78 100644 --- a/drivers/platform/chrome/cros_ec_proto.c +++ b/drivers/platform/chrome/cros_ec_proto.c @@ -371,6 +371,8 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev) else ec_dev->mkbp_event_supported = 1; + ret = 0; + exit: kfree(proto_msg); return ret; |