Re: [PATCH] iio: adc: viperboard: Call platform_set_drvdata before devm_iio_device_register

2014-02-01 Thread Johannes Thumshirn
On Sat, Feb 01, 2014 at 03:46:05PM +0100, Lars-Peter Clausen wrote: > On 02/01/2014 03:39 PM, Johannes Thumshirn wrote: > > Call platform_set_drvdata before devm_iio_device_register to avoid possible > > race condition when accessing driver data. > > I don't think the driver data is accessed from w

Re: [PATCH] iio: adc: viperboard: Call platform_set_drvdata before devm_iio_device_register

2014-02-01 Thread Lars-Peter Clausen
On 02/01/2014 03:39 PM, Johannes Thumshirn wrote: > Call platform_set_drvdata before devm_iio_device_register to avoid possible > race condition when accessing driver data. I don't think the driver data is accessed from within any of the IIO device callbacks. In fact I don't think it is accessed a

[PATCH] iio: adc: viperboard: Call platform_set_drvdata before devm_iio_device_register

2014-02-01 Thread Johannes Thumshirn
Call platform_set_drvdata before devm_iio_device_register to avoid possible race condition when accessing driver data. Signed-off-by: Johannes Thumshirn --- drivers/iio/adc/viperboard_adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/viperboard_adc.c b