linux/drivers/iio/light
Shreeya Patel 0dec4d2f26 iio: light: tsl2583: Fix module unloading
tsl2583 probe() uses devm_iio_device_register() and calling
iio_device_unregister() causes the unregister to occur twice. s
Switch to iio_device_register() instead of devm_iio_device_register()
in probe to avoid the device managed cleanup.

Fixes: 371894f5d1 ("iio: tsl2583: add runtime power management support")
Signed-off-by: Shreeya Patel <shreeya.patel@collabora.com>
Link: https://lore.kernel.org/r/20220826122352.288438-1-shreeya.patel@collabora.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-10-17 08:51:26 +01:00
..
acpi-als.c
adjd_s311.c
adux1020.c
al3010.c iio: light: al3010: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
al3320a.c iio: light: al3320a: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
apds9300.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
apds9960.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
as73211.c iio: light: as73211: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
bh1750.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
bh1780.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
cm3232.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
cm3323.c
cm3605.c iio: light: cm3605: Fix an error handling path in cm3605_probe() 2022-08-15 22:30:40 +01:00
cm32181.c iio: light: cm32181: make cm32181_pm_ops static 2022-08-21 18:24:16 +01:00
cm36651.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
cros_ec_light_prox.c iio: cros: Register FIFO callback after sensor is registered 2022-07-18 18:29:13 +01:00
gp2ap002.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
gp2ap020a00f.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
hid-sensor-als.c
hid-sensor-prox.c
iqs621-als.c
isl29018.c iio:light:isl29018: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() 2022-02-18 11:45:29 +00:00
isl29028.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
isl29125.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
jsa1212.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
Kconfig iio: light: Add support for ltrf216a sensor 2022-08-15 22:29:57 +01:00
lm3533-als.c iio: lm3533: Use sysfs_emit() 2022-01-23 18:03:36 +00:00
ltr501.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
ltrf216a.c iio: light: ltrf216a: Add raw attribute 2022-08-30 18:35:38 +01:00
lv0104cs.c
Makefile iio: light: Add support for ltrf216a sensor 2022-08-15 22:29:57 +01:00
max44000.c
max44009.c
noa1305.c
opt3001.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
pa12203001.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
rpr0521.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
si1133.c
si1145.c
st_uvis25.h
st_uvis25_core.c iio: light: st_uvis25: Use EXPORT_NS_SIMPLE_DEV_PM_OPS() 2022-09-21 18:42:57 +01:00
st_uvis25_i2c.c iio: light: st_uvis25: Use EXPORT_NS_SIMPLE_DEV_PM_OPS() 2022-09-21 18:42:57 +01:00
st_uvis25_spi.c iio: light: st_uvis25: Use EXPORT_NS_SIMPLE_DEV_PM_OPS() 2022-09-21 18:42:57 +01:00
stk3310.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
tcs3414.c iio:light:tcs3414: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:45:30 +00:00
tcs3472.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
tsl2563.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
tsl2583.c iio: light: tsl2583: Fix module unloading 2022-10-17 08:51:26 +01:00
tsl2591.c iio: light: tsl2591: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() 2022-07-18 18:48:19 +01:00
tsl2772.c iio: light: tsl2772: Make use of device properties 2022-04-28 19:22:55 +01:00
tsl4531.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
us5182d.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
vcnl4000.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
vcnl4035.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
veml6030.c iio: light: veml6030: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() macros 2022-07-18 18:48:19 +01:00
veml6070.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
vl6180.c
zopt2201.c