diff options
author | Shreeya Patel <shreeya.patel@collabora.com> | 2022-08-26 15:23:52 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-10-17 10:51:26 +0300 |
commit | 0dec4d2f2636b9e54d9d29f17afc7687c5407f78 (patch) | |
tree | e80f9fc92eb8315f625b6b69d6d6a4e2bff5d72c /drivers/iio/adc/mcp3911.c | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) | |
download | linux-0dec4d2f2636b9e54d9d29f17afc7687c5407f78.tar.xz |
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: 371894f5d1a0 ("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>
Diffstat (limited to 'drivers/iio/adc/mcp3911.c')
0 files changed, 0 insertions, 0 deletions