Re: [PATCH v2 3/4] iio: gyro: mpu3050: Move iio_device_register() to correct location

From: Andy Shevchenko

Date: Tue Feb 24 2026 - 05:06:34 EST


On Mon, Feb 23, 2026 at 08:35:10PM -0600, Ethan Tidmore wrote:
> iio_device_register() should be at the end of the probe function to
> prevent race conditions.
>
> Place iio_device_register() at end of probe function and place

at the end

> iio_device_unregister() accordingly.

...

> @@ -1231,6 +1225,7 @@ int mpu3050_common_probe(struct device *dev,
> ret = mpu3050_trigger_probe(indio_dev, irq);
> if (ret)
> dev_err(dev, "failed to register trigger\n");
> +
> }
>
> /* Enable runtime PM */

Stray change.

--
With Best Regards,
Andy Shevchenko