staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
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>
This commit is contained in:
parent
dffbb44d55
commit
38f71aa905
|
@ -159,7 +159,7 @@ static int __devinit ad7476_probe(struct spi_device *spi)
|
||||||
else
|
else
|
||||||
dev_warn(&spi->dev, "reference voltage unspecified\n");
|
dev_warn(&spi->dev, "reference voltage unspecified\n");
|
||||||
|
|
||||||
spi_set_drvdata(spi, st);
|
spi_set_drvdata(spi, indio_dev);
|
||||||
|
|
||||||
st->spi = spi;
|
st->spi = spi;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue