Re: [PATCH v3 4/6] staging:iio:ad2s90: Move device registration to the end of probe

2018-11-04 Thread Jonathan Cameron
On Sat, 3 Nov 2018 19:49:46 -0300 Matheus Tavares wrote: > Previously, devm_iio_device_register was being called before the > spi_setup call and the spi_device's max_speed_hz and mode assignments. > This could lead to a race condition since the driver was still being > set up after it was alread

[PATCH v3 4/6] staging:iio:ad2s90: Move device registration to the end of probe

2018-11-03 Thread Matheus Tavares
Previously, devm_iio_device_register was being called before the spi_setup call and the spi_device's max_speed_hz and mode assignments. This could lead to a race condition since the driver was still being set up after it was already made ready to use. To fix it, this patch moves the device registra