kernel_optimize_test/drivers/iio
Guenter Roeck 678fb42e2b iio: (max1363) Fix probe error path
Instantiating the driver with no available regulator results in:

[39711.686393] i2c i2c-7: new_device: Instantiated device max1139 at 0x35
[39711.688687] BUG: unable to handle kernel paging request at fffffffffffffe13
[39711.688734] IP: [<ffffffff813e835b>] regulator_disable+0x1b/0x80
[39711.688788] PGD 1c0e067 PUD 1c0f067 PMD 0
[39711.688835] Oops: 0000 [#1] SMP

Caused by bad probe error path. Fix it.

Driver should also not attempt to free the interrupt in its error path if
none was allocated. Fix that problem as well.

Finally, testing if the regulator was allocated is not necessary in the
remove function, since the probe function bails out if this is the case.
Remove that check.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-12-27 11:11:27 +00:00
..
accel iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00
adc iio: (max1363) Fix probe error path 2012-12-27 11:11:27 +00:00
amplifiers iio: amplifiers: New driver for AD8366 Dual-Digital Variable Gain Amplifier 2012-05-14 13:15:39 -07:00
common iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00
dac iio: dac: ad5446: Don't set error code to voltage_uv 2012-12-27 11:00:27 +00:00
frequency iio:adf4350: Fix typo 2012-12-27 10:59:29 +00:00
gyro iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00
imu iio: imu: adis16480: remove duplicated include from adis16480.c 2012-11-30 13:11:46 +00:00
light iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00
magnetometer iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00
buffer_cb.c staging:iio: add a callback buffer for in kernel push interface 2012-11-10 10:17:27 +00:00
iio_core_trigger.h IIO: Move the core files to drivers/iio 2012-04-25 11:11:38 -07:00
iio_core.h IIO: Move the core files to drivers/iio 2012-04-25 11:11:38 -07:00
industrialio-buffer.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
industrialio-core.c iio: Factor out fixed point number parsing into its own function 2012-11-20 21:26:39 +00:00
industrialio-event.c drivers/iio/industrialio-event.c: eliminate possible double free 2012-11-17 10:17:20 +00:00
industrialio-trigger.c iio:trigger: Register sysfs file statically 2012-07-08 10:39:58 +01:00
industrialio-triggered-buffer.c iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
inkern.c staging:iio:in kernel users: Add a data field for channel specific info. 2012-11-10 10:17:27 +00:00
Kconfig staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00
kfifo_buf.c iio: Drop timestamp parameter from buffer store_to callback 2012-09-08 10:14:34 +01:00
Makefile staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00