aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-07-13 08:42:47 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-18 16:22:52 -0400
commit38f71aa905c20ca458bb21c818d41579d03fdc28 (patch)
tree8fd4ff0490c61b1eb9f21186124d855512d52f19 /drivers
parentdffbb44d5575facfb38a57cbb2925b03a5fc751b (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/adc/ad7476_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7476_core.c b/drivers/staging/iio/adc/ad7476_core.c
index 768f3ecf4790..c21089894d28 100644
--- a/drivers/staging/iio/adc/ad7476_core.c
+++ b/drivers/staging/iio/adc/ad7476_core.c
@@ -159,7 +159,7 @@ static int __devinit ad7476_probe(struct spi_device *spi)
159 else 159 else
160 dev_warn(&spi->dev, "reference voltage unspecified\n"); 160 dev_warn(&spi->dev, "reference voltage unspecified\n");
161 161
162 spi_set_drvdata(spi, st); 162 spi_set_drvdata(spi, indio_dev);
163 163
164 st->spi = spi; 164 st->spi = spi;
165 165