projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ab3fc
)
staging:iio:accel:lis3l02dq: fix incorrect pointer passed to spi_set_drvdata.
author
Jonathan Cameron
<jic23@cam.ac.uk>
Wed, 13 Jul 2011 11:51:59 +0000
(12:51 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 18 Jul 2011 20:23:57 +0000
(13:23 -0700)
This mean all sorts of interesting results on driver removal.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/lis3l02dq_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/accel/lis3l02dq_core.c
b/drivers/staging/iio/accel/lis3l02dq_core.c
index ba5bc679204f5cd023031545ed286e8f3786f260..a29dfd27d4408623458eb83ee3790fa7b44b409f 100644
(file)
--- a/
drivers/staging/iio/accel/lis3l02dq_core.c
+++ b/
drivers/staging/iio/accel/lis3l02dq_core.c
@@
-676,7
+676,7
@@
static int __devinit lis3l02dq_probe(struct spi_device *spi)
}
st = iio_priv(indio_dev);
/* this is only used tor removal purposes */
- spi_set_drvdata(spi,
st
);
+ spi_set_drvdata(spi,
indio_dev
);
st->us = spi;
mutex_init(&st->buf_lock);