diff options
Diffstat (limited to 'drivers/iio/gyro/st_gyro_i2c.c')
-rw-r--r-- | drivers/iio/gyro/st_gyro_i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/gyro/st_gyro_i2c.c b/drivers/iio/gyro/st_gyro_i2c.c index 8a310500573d..c7a29a4d7e82 100644 --- a/drivers/iio/gyro/st_gyro_i2c.c +++ b/drivers/iio/gyro/st_gyro_i2c.c | |||
@@ -36,7 +36,8 @@ static int st_gyro_i2c_probe(struct i2c_client *client, | |||
36 | 36 | ||
37 | st_sensors_i2c_configure(indio_dev, client, gdata); | 37 | st_sensors_i2c_configure(indio_dev, client, gdata); |
38 | 38 | ||
39 | err = st_gyro_common_probe(indio_dev); | 39 | err = st_gyro_common_probe(indio_dev, |
40 | (struct st_sensors_platform_data *)&gyro_pdata); | ||
40 | if (err < 0) | 41 | if (err < 0) |
41 | goto st_gyro_common_probe_error; | 42 | goto st_gyro_common_probe_error; |
42 | 43 | ||