All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IIO fix for staging-next
@ 2011-07-13 12:42 Jonathan Cameron
  2011-07-13 12:42 ` [PATCH] staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Cameron @ 2011-07-13 12:42 UTC (permalink / raw)
  To: greg; +Cc: linux-iio, Jonathan Cameron

Hi Greg,

Same issue as for the lis3l02dq patch in the 3.0 fixes set.
The change that introduces the bug is only in staging-next at
the moment know hence this separate series.

Thanks,

Jonathan

Jonathan Cameron (1):
  staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.

 drivers/staging/iio/adc/ad7476_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
  2011-07-13 12:42 [PATCH] IIO fix for staging-next Jonathan Cameron
@ 2011-07-13 12:42 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2011-07-13 12:42 UTC (permalink / raw)
  To: greg; +Cc: linux-iio, Jonathan Cameron

Will cause issues only on driver removal.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
---
 drivers/staging/iio/adc/ad7476_core.c |    2 +-
 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 768f3ec..c210898 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;
 
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-13 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13 12:42 [PATCH] IIO fix for staging-next Jonathan Cameron
2011-07-13 12:42 ` [PATCH] staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.