diff options
| author | 2026-06-14 15:19:03 +0200 | |
|---|---|---|
| committer | 2026-06-30 00:15:54 +0100 | |
| commit | a3ed4362d3d902f0adf4e187eed15ccbe230fc7a (patch) | |
| tree | fb19afafcf5c4e0963d779db86797fc231466540 /scripts/Makefile.thinlto | |
| parent | iio: stm32-dfsdm: Treat flags as booleans (diff) | |
iio: light: opt3001: move device registration to end of probe()
Move IIO device registration to the end of the probe() function to
follow standard driver teardown/setup ordering and improve driver
logic. Additionally, switch devm_iio_device_register() to its
unmanaged counterpart as current driver implementation mixes managed
and unmanaged resources, causing potential resource leaks.
Also, add iio_device_unregister() to remove() function to correctly
handle teardown.
Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
