diff options
author | Ben Dooks (Codethink) <ben.dooks@codethink.co.uk> | 2019-12-18 10:07:20 +0000 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2019-12-19 20:01:14 +0100 |
commit | e054d71836f047743f910f97bd13dcd49116c146 (patch) | |
tree | 5adade408b97e683624704d87866f94327eedbbd /drivers/platform | |
parent | c82ebf1bf738e2d6f62266ddfd42f539b344a558 (diff) | |
download | linux-e054d71836f047743f910f97bd13dcd49116c146.tar.gz linux-e054d71836f047743f910f97bd13dcd49116c146.tar.bz2 linux-e054d71836f047743f910f97bd13dcd49116c146.zip |
platform/chrome: cros_ec_ishtp: Make init_lock static
The init_lock is not declared or used outside of cros_ec_ishtp.c
so make it static to avoid the following warning:
drivers/platform/chrome/cros_ec_ishtp.c:79:1: warning: symbol 'init_lock' was not declared. Should it be static?
Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/chrome/cros_ec_ishtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/chrome/cros_ec_ishtp.c b/drivers/platform/chrome/cros_ec_ishtp.c index e5996821d08b..5f8e76f3022a 100644 --- a/drivers/platform/chrome/cros_ec_ishtp.c +++ b/drivers/platform/chrome/cros_ec_ishtp.c @@ -76,7 +76,7 @@ struct cros_ish_in_msg { * * The writers are .reset() and .probe() function. */ -DECLARE_RWSEM(init_lock); +static DECLARE_RWSEM(init_lock); /** * struct response_info - Encapsulate firmware response related |