projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dffbb44
)
staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
author
Jonathan Cameron
<jic23@cam.ac.uk>
Wed, 13 Jul 2011 12:42:47 +0000
(13:42 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 18 Jul 2011 20:22:52 +0000
(13:22 -0700)
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>
drivers/staging/iio/adc/ad7476_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/iio/adc/ad7476_core.c
b/drivers/staging/iio/adc/ad7476_core.c
index 768f3ecf4790545d5a8c6d5a5435bde1684a8378..c21089894d28b70c9d4e7277d0bdcf089dcf8c9e 100644
(file)
--- 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;