diff options
author | Ramona Bolboaca <ramona.bolboaca@analog.com> | 2022-11-22 10:27:53 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-11-23 20:37:51 +0000 |
commit | 2647f0e4d397fa5f80c78370d514b05a2110f987 (patch) | |
tree | 9214d234ed58c8d263ec951038e3d730e04cae33 | |
parent | c5de7d4c026f4c4310e6cb1e06e1ae0bd57cd838 (diff) | |
download | linux-2647f0e4d397fa5f80c78370d514b05a2110f987.tar.gz linux-2647f0e4d397fa5f80c78370d514b05a2110f987.tar.bz2 linux-2647f0e4d397fa5f80c78370d514b05a2110f987.zip |
iio: gyro: adis16260: Call '__adis_initial_startup()' in probe
Call '__adis_initial_startup()' instead of its locked variant in
'adis16260_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-6-ramona.bolboaca@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/gyro/adis16260.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/gyro/adis16260.c b/drivers/iio/gyro/adis16260.c index eaf57bd339ed..112d635b7dfd 100644 --- a/drivers/iio/gyro/adis16260.c +++ b/drivers/iio/gyro/adis16260.c @@ -395,7 +395,7 @@ static int adis16260_probe(struct spi_device *spi) return ret; /* Get the device into a sane initial state */ - ret = adis_initial_startup(&adis16260->adis); + ret = __adis_initial_startup(&adis16260->adis); if (ret) return ret; |