iio: gyro: adxrs290: Insert missing mutex initialization call
authorNishant Malpani <nish.malpani25@gmail.com>
Tue, 25 Aug 2020 12:45:52 +0000 (18:15 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:51 +0000 (19:40 +0100)
commit7e604a3d212ca006802f485f7bac9712a5ddd805
tree39f28bb169a0ed27a8b4264cc3273d13e247bdd9
parent3b0028bd0f03fa60c586cd8c4a6c8265a81dcf9c
iio: gyro: adxrs290: Insert missing mutex initialization call

Insert a missing mutex_init() call during the probe that initializes
the driver's local lock to unlocked state.

Fixes: 2c8920fff145 ("iio: gyro: Add driver support for ADXRS290")
Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com>
Link: https://lore.kernel.org/r/20200825124552.11155-1-nish.malpani25@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/adxrs290.c