linux-hardened/drivers/iio/adc
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
..
ad7266.c iio: adc: ad7266: Don't set error code to st->vref_uv 2012-12-27 10:59:56 +00:00
ad7298.c iio:adc:ad7298 make the tx and rx buffers __be16 2012-11-21 18:24:26 +00:00
ad7476.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
ad7791.c staging:iio:adc: Add AD7791 driver 2012-09-08 10:20:09 +01:00
ad7793.c iio:ad7793: Add support for the ad7796 and ad7797 2012-11-30 12:57:09 +00:00
ad7887.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
ad_sigma_delta.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
at91_adc.c iio: at91: fix dev var name in at91_adc_trigger_handler 2012-12-27 10:59:38 +00:00
Kconfig This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
lp8788_adc.c iio: adc: add new lp8788 adc driver 2012-09-22 10:29:19 +01:00
Makefile This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
max1363.c iio: (max1363) Fix probe error path 2012-12-27 11:11:27 +00:00
ti-adc081c.c iio: adc: Add Texas Instruments ADC081C021/027 support 2012-11-30 12:57:09 +00:00
ti_am335x_adc.c IIO : ADC: tiadc: Add support of TI's ADC driver 2012-11-05 23:50:27 +01:00
viperboard_adc.c iio: adc: Add viperboard adc driver 2012-11-20 12:21:13 +01:00