Skip to content
Snippets Groups Projects
user avatar
Bijosh Thykkoottathil authored
mma8452_set_freefall_mode can return -ve value in case if
i2c_smbus_read_byte_data fails. This function is called from mma8452_probe,
and returning -ve value from probe indicates probe failure. Need to call
iio_triggered_buffer_cleanup & iio_trigger_cleanup in this case.

Signed-off-by: default avatarBijosh Thykkoottathil <bijosh.t@hotmail.com>
Acked-by: default avatarMartin Kepplinger <martink@posteo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
1a965d40
History
Name Last commit Last update