linux/drivers/iio/light
Hartmut Knaack 037e966f2d 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: 3dd477acbd ("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>
2015-07-19 14:53:16 +01:00
..
acpi-als.c iio: acpi: Add support for ACPI0008 Ambient Light Sensor 2015-05-10 20:31:48 +01:00
adjd_s311.c iio: delete non-required instances of include <linux/init.h> 2014-01-11 11:59:00 +00:00
al3320a.c iio: Add Dyna-Image AL3320A ambient light sensor driver 2014-09-10 20:25:56 +01:00
apds9300.c iio: Remove support for the legacy event config interface 2013-12-08 13:13:52 +00:00
bh1750.c iio: light: add support for ROHM BH1710/BH1715/BH1721/BH1750/BH1751 ambient light sensors 2015-05-10 20:31:46 +01:00
cm3232.c iio: light: Added PM support for Capella CM3232 ambient light sensor driver. 2015-03-08 12:04:57 +00:00
cm3323.c iio:light:cm3323: clear bitmask before set 2015-07-19 11:48:08 +01:00
cm32181.c iio: light: cm32181: Fix typo 's/claibscale/calibscale/' 2015-01-25 22:53:49 +00:00
cm36651.c iio: cm36651: Fix i2c client leak and possible NULL pointer dereference 2014-03-22 12:22:49 +00:00
gp2ap020a00f.c iio: gp2ap020a00f: Use put_unaligned_le32 2015-02-14 17:28:41 +00:00
hid-sensor-als.c iio: light: hid-sensor-als.c: Fix memory leak in probe() 2015-05-17 09:10:05 +01:00
hid-sensor-prox.c Second set of new driver, functionality and cleanups for IIO in the 4.2 cycle. 2015-05-24 11:45:21 -07:00
isl29125.c iio: Add Intersil isl29125 digital color light sensor driver 2014-07-07 09:06:50 +01:00
jsa1212.c iio: jsa1212: Constify struct regmap_config 2015-02-25 11:37:53 +00:00
Kconfig iio:light:ltr501: fix regmap dependency 2015-07-19 11:48:17 +01:00
lm3533-als.c iio: light: lm3533-als: Remove space before ',' 2015-01-01 12:14:36 +00:00
ltr501.c iio:light:ltr501: fix variable in ltr501_init 2015-07-19 11:48:16 +01:00
Makefile iio: acpi: Add support for ACPI0008 Ambient Light Sensor 2015-05-10 20:31:48 +01:00
stk3310.c iio:light:stk3310: move device register to end of probe 2015-07-19 14:53:16 +01:00
tcs3414.c iio: light: tcs3414: Fix bug preventing to set integration time 2015-07-19 11:48:10 +01:00
tcs3472.c iio:tcs3472: Check for buffer enabled and locking 2014-07-07 08:59:16 +01:00
tsl2563.c iio:tsl2563: Use tsl2563_ prefix for driver's functions 2015-04-18 20:35:31 +01:00
tsl4531.c iio:tsl4531: Fix leftover TCS3472_ prefix in tsl4531 driver 2015-04-18 20:31:35 +01:00
vcnl4000.c iio:vcnl4000: Mark transfer buffer as __be16 2013-12-03 20:22:27 +00:00