staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 13 Jul 2011 12:42:47 +0000 (13:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jul 2011 20:22:52 +0000 (13:22 -0700)
Will cause issues only on driver removal.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7476_core.c

index 768f3ec..c210898 100644 (file)
@@ -159,7 +159,7 @@ static int __devinit ad7476_probe(struct spi_device *spi)
        else
                dev_warn(&spi->dev, "reference voltage unspecified\n");
 
-       spi_set_drvdata(spi, st);
+       spi_set_drvdata(spi, indio_dev);
 
        st->spi = spi;