]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit559aca48e2fe1feddd94499b1fde7a90954f5822
tree86406aa54107c8c071946dbc2247ff48db6bad21
parent06ca43bce41ac06bd0f1ccf11d7b5da5972ca13d
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