Skip to content

Commit

Permalink
staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Jul 18, 2011
1 parent dffbb44 commit 38f71aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/adc/ad7476_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 38f71aa

Please sign in to comment.