Skip to content

Commit

Permalink
staging:iio:accel:lis3l02dq: fix incorrect pointer passed to spi_set_…
Browse files Browse the repository at this point in the history
…drvdata.

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>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Jul 18, 2011
1 parent 91ab3fc commit 8016934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/accel/lis3l02dq_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8016934

Please sign in to comment.