summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorRamona Bolboaca <ramona.bolboaca@analog.com>2022-11-22 11:27:54 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-11-23 23:37:51 +0300
commit40fd61b0698c1ecf73f8da61b461937b7d91ee26 (patch)
treebab19721c920022b613e5133de5df6f6c79c7c35 /drivers/iio
parent2647f0e4d397fa5f80c78370d514b05a2110f987 (diff)
downloadlinux-40fd61b0698c1ecf73f8da61b461937b7d91ee26.tar.xz
iio: imu: adis16400: Call '__adis_initial_startup()' in probe
Call '__adis_initial_startup()' instead of its locked variant in 'adis16400_probe()'. The locks are not needed at this point. Signed-off-by: Ramona Bolboaca <ramona.bolboaca@analog.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20221122082757.449452-7-ramona.bolboaca@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/imu/adis16400.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/imu/adis16400.c b/drivers/iio/imu/adis16400.c
index 17bb0c40a149..c02fc35dceb4 100644
--- a/drivers/iio/imu/adis16400.c
+++ b/drivers/iio/imu/adis16400.c
@@ -445,7 +445,7 @@ static int adis16400_initial_setup(struct iio_dev *indio_dev)
st->adis.spi->mode = SPI_MODE_3;
spi_setup(st->adis.spi);
- ret = adis_initial_startup(&st->adis);
+ ret = __adis_initial_startup(&st->adis);
if (ret)
return ret;