The driver does not use spi_get_drvdata() anywhere. Suggested-by: Marcelo Schmitt <marcelo.schmitt1@xxxxxxxxx> Signed-off-by: Siddharth Menon <simeddon@xxxxxxxxx> --- drivers/staging/iio/accel/adis16203.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c index ac4b28bcd766..ec21365bb391 100644 --- a/drivers/staging/iio/accel/adis16203.c +++ b/drivers/staging/iio/accel/adis16203.c @@ -268,8 +268,6 @@ static int adis16203_probe(struct spi_device *spi) if (!indio_dev) return -ENOMEM; st = iio_priv(indio_dev); - /* this is only used for removal purposes */ - spi_set_drvdata(spi, indio_dev); indio_dev->name = spi->dev.driver->name; indio_dev->channels = adis16203_channels; -- 2.48.1