staging:iio:accel:sca3000 Tidy up probe order to avoid a race.
authorJonathan Cameron <jic23@kernel.org>
Sat, 8 Oct 2016 16:39:15 +0000 (17:39 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:05 +0000 (19:34 +0100)
commit9a4936dc89a34e002946a6c08b330918ec6afab8
tree86406aa54107c8c071946dbc2247ff48db6bad21
parent7ab9fa0052878c331670ef5a2a1ef09ec3111dea
staging:iio:accel:sca3000 Tidy up probe order to avoid a race.

Previously the device was exposed to userspace and in kernel consumers
before the interrupts had been configured. As nothing stopped them being
enabled in the interval this could cause unhandled interrupts.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/staging/iio/accel/sca3000.c