From: Jonathan Cameron Date: Wed, 13 Jul 2011 12:42:47 +0000 (+0100) Subject: staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata. X-Git-Tag: MMI-PSA29.97-13-9~18845^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38f71aa905c20ca458bb21c818d41579d03fdc28;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata. Will cause issues only on driver removal. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- 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) else dev_warn(&spi->dev, "reference voltage unspecified\n"); - spi_set_drvdata(spi, st); + spi_set_drvdata(spi, indio_dev); st->spi = spi;