linux/drivers/iio/accel
Chuhong Yuan d7369ae1f4 iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe()
The function iio_device_register() was called in mma8452_probe().
But the function iio_device_unregister() was not called after
a call of the function mma8452_set_freefall_mode() failed.
Thus add the missed function call for one error case.

Fixes: 1a965d405f ("drivers:iio:accel:mma8452: added cleanup provision in case of failure.")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-06-14 12:32:23 +01:00
..
adis16201.c iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
adis16209.c iio: imu: adis: Add self_test_reg variable 2020-03-08 17:28:30 +00:00
adxl345_core.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
adxl345_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
adxl345_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
adxl345.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
adxl372_i2c.c
adxl372_spi.c iio: adxl372: declare missing of table 2019-04-27 13:57:36 +01:00
adxl372.c iio: accel: adxl372: Set iio_chan BE 2020-03-08 16:21:21 +00:00
adxl372.h
bma180.c iio: accel: Add bma150/smb380 support to bma180 2020-05-16 16:06:00 +01:00
bma220_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
bma400_core.c iio: accel: bma400: prevent setting accel scale too low 2020-01-18 13:33:11 +00:00
bma400_i2c.c iio: accel: Add driver for the BMA400 2019-12-29 15:20:02 +00:00
bma400.h iio: accel: bma400: basic regulator support 2019-12-29 15:20:02 +00:00
bmc150-accel-core.c iio: fix center temperature of bmc150-accel-core 2019-09-08 13:11:50 +01:00
bmc150-accel-i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
bmc150-accel-spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
bmc150-accel.h
cros_ec_accel_legacy.c iio: cros_ec: Register to cros_ec_sensorhub when EC supports FIFO 2020-03-28 22:04:32 +01:00
da280.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
da311.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
dmard06.c iio: accel: dmard06: Use mod_devicetable.h and drop of_match_ptr macro 2020-04-25 15:29:09 +01:00
dmard09.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
dmard10.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
hid-sensor-accel-3d.c iio: hid-sensors: move triggered buffer setup into hid_sensor_setup_trigger 2020-05-10 09:35:53 +01:00
Kconfig iio: accel: Add bma150/smb380 support to bma180 2020-05-16 16:06:00 +01:00
kxcjk-1013.c iio: accel: kxcjk1013: Support orientation matrix 2020-01-18 14:26:13 +00:00
kxsd9-i2c.c iio: accel: kxsd9-i2c: Use mod_devicetable.h and drop of_match_ptr macro 2020-04-25 15:31:34 +01:00
kxsd9-spi.c Merge 5.2-rc3 into staging-next 2019-06-03 07:27:16 +02:00
kxsd9.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
kxsd9.h
Makefile iio: accel: Add driver for the BMA400 2019-12-29 15:20:02 +00:00
mc3230.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
mma7455_core.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mma7455_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mma7455_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mma7455.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mma7660.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mma8452.c iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe() 2020-06-14 12:32:23 +01:00
mma9551_core.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
mma9551_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
mma9551.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
mma9553.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
mxc4005.c iio:accel:mxc4005: Drop unnecessary explicit casts in regmap_bulk_read calls 2020-04-19 16:56:38 +01:00
mxc6255.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
sca3000.c iio: sca3000: Remove an erroneous 'get_device()' 2020-05-10 10:53:36 +01:00
ssp_accel_sensor.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
st_accel_buffer.c iio: st_sensors: Drop unneeded explicit castings 2020-03-21 10:26:21 +00:00
st_accel_core.c iio: accel: st_sensors: add support for LIS2HH12 2020-04-19 16:56:30 +01:00
st_accel_i2c.c First set of new IIO device support, features and cleanup for the 5.8 cycle 2020-04-23 11:06:48 +02:00
st_accel_spi.c iio: st_sensors: Make use of device properties 2020-01-13 21:53:39 +00:00
st_accel.h iio: accel: st_sensors: add support for LIS2HH12 2020-04-19 16:56:30 +01:00
stk8ba50.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
stk8312.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00