From: Nuno Sa <nuno.sa@xxxxxxxxxx> spi_set_drvdata() is not needed as there's no spi_get_drvdata() call in the code. Signed-off-by: Nuno Sa <nuno.sa@xxxxxxxxxx> --- drivers/iio/frequency/adf4371.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/frequency/adf4371.c b/drivers/iio/frequency/adf4371.c index c8bf37f1679c..eb31f442566c 100644 --- a/drivers/iio/frequency/adf4371.c +++ b/drivers/iio/frequency/adf4371.c @@ -561,7 +561,6 @@ static int adf4371_probe(struct spi_device *spi) } st = iio_priv(indio_dev); - spi_set_drvdata(spi, indio_dev); st->spi = spi; st->regmap = regmap; mutex_init(&st->lock); -- 2.46.1