summaryrefslogtreecommitdiffstats
path: root/block/Kconfig
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2015-07-09 23:51:29 +0200
committerJonathan Cameron <jic23@kernel.org>2015-07-19 14:53:16 +0100
commit037e966f2d63896129220112644f32962af6d115 (patch)
tree54ee1dfff326d82657179b66261350c000a6b567 /block/Kconfig
parentc5d0db0690ff0a963dc082e7645268c466bf9a84 (diff)
downloadblackbird-op-linux-037e966f2d63896129220112644f32962af6d115.tar.gz
blackbird-op-linux-037e966f2d63896129220112644f32962af6d115.zip
iio:light:stk3310: move device register to end of probe
iio_device_register should be the last operation during probe. Therefor move up interrupt setup code and while at it, change the check for invalid values of client->irq to be smaller than zero. Fixes: 3dd477acbdd1 ("iio: light: Add threshold interrupt support for STK3310") As the device_register makes the userspace interfaces of the device available it is possible for requests to come in before the probe sequence has finished. This can lead to unhandled interrupts and similar. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Reviewed-by: Tiberiu Breana <tiberiu.a.breana@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'block/Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud