diff options
author | Denis CIOCCA <denis.ciocca@st.com> | 2014-10-03 11:35:41 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-10-04 06:26:21 -0400 |
commit | 7be178bb48bc3ed5af2f6cfdb69074dba4bd87b9 (patch) | |
tree | d496c59b2d909757276601a35c722b830f81e955 /drivers/iio/gyro/st_gyro_spi.c | |
parent | a1dcf42927a3eebe749b14178441889ef3887ceb (diff) |
iio:common: Set the device pointer into ST common sensors library
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/gyro/st_gyro_spi.c')
-rw-r--r-- | drivers/iio/gyro/st_gyro_spi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/gyro/st_gyro_spi.c b/drivers/iio/gyro/st_gyro_spi.c index 3e7a01af9b61..e59bead6bc3c 100644 --- a/drivers/iio/gyro/st_gyro_spi.c +++ b/drivers/iio/gyro/st_gyro_spi.c | |||
@@ -29,7 +29,6 @@ static int st_gyro_spi_probe(struct spi_device *spi) | |||
29 | return -ENOMEM; | 29 | return -ENOMEM; |
30 | 30 | ||
31 | gdata = iio_priv(indio_dev); | 31 | gdata = iio_priv(indio_dev); |
32 | gdata->dev = &spi->dev; | ||
33 | 32 | ||
34 | st_sensors_spi_configure(indio_dev, spi, gdata); | 33 | st_sensors_spi_configure(indio_dev, spi, gdata); |
35 | 34 | ||