Re: [PATCH 3/3] iio: light: vcnl4000: register an IIO device with a device-managed function
From: Andy Shevchenko
Date: Thu Apr 02 2026 - 04:26:18 EST
On Wed, Apr 01, 2026 at 02:22:38PM +0300, Erikas Bitovtas wrote:
> Use a device-managed counterpart of iio_device_register() and remove the
> redundant iio_device_unregister() call in driver remove function.
...
> - ret = iio_device_register(indio_dev);
> + ret = devm_iio_device_register(dev, indio_dev);
> if (ret < 0)
> goto fail_poweroff;
^^^^ This goto is sign of a still existing ordering issue. so this patch is half-baked.
--
With Best Regards,
Andy Shevchenko