platform/chrome: cros_ec_lpc: Use DEFINE_MUTEX() for mutex lock
authorYe Bin <yebin10@huawei.com>
Fri, 9 Apr 2021 09:51:38 +0000 (17:51 +0800)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 21 Apr 2021 08:00:30 +0000 (10:00 +0200)
commitd61b3f9b91be32f714b218377ab5081932e3ebc2
tree2dccb454f3a62b1603ca6528e409289b93c209d1
parent4423ee65f76818c8a8994e6f5821372661ea7f89
platform/chrome: cros_ec_lpc: Use DEFINE_MUTEX() for mutex lock

mutex lock can be initialized automatically with DEFINE_MUTEX()
rather than explicitly calling mutex_init().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210409095138.2293869-1-yebin10@huawei.com
drivers/platform/chrome/cros_ec_lpc_mec.c