+++ /dev/null
-From 55b40d37311807a6bb2acdae0df904f54a0da3ae Mon Sep 17 00:00:00 2001
-From: Guenter Roeck <linux@roeck-us.net>
-Date: Mon, 27 Jan 2014 18:10:00 +0000
-Subject: iio: max1363: Use devm_regulator_get_optional for optional regulator
-
-From: Guenter Roeck <linux@roeck-us.net>
-
-commit 55b40d37311807a6bb2acdae0df904f54a0da3ae upstream.
-
-In kernel version 3.13, devm_regulator_get() may return no error
-if a regulator is undeclared. regulator_get_voltage() will return
--EINVAL if this happens. This causes the driver to fail loading if
-the vref regulator is not declared.
-
-Since vref is optional, call devm_regulator_get_optional instead.
-
-Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
----
- drivers/iio/adc/max1363.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/drivers/iio/adc/max1363.c
-+++ b/drivers/iio/adc/max1363.c
-@@ -1528,7 +1528,7 @@ static int max1363_probe(struct i2c_clie
- st->client = client;
-
- st->vref_uv = st->chip_info->int_vref_mv * 1000;
-- vref = devm_regulator_get(&client->dev, "vref");
-+ vref = devm_regulator_get_optional(&client->dev, "vref");
- if (!IS_ERR(vref)) {
- int vref_uv;
-
usb-qcserial-add-netgear-aircard-340u.patch
staging-comedi-adv_pci1710-fix-analog-output-readback-value.patch
staging-iio-ad799x-fix-error_free_irq-which-was-freeing-an-irq-that-may-not-have-been-requested.patch
-iio-max1363-use-devm_regulator_get_optional-for-optional-regulator.patch
iio-adis16400-set-timestamp-as-the-last-element-in-chan_spec.patch
x86-smap-don-t-enable-smap-if-config_x86_smap-is-disabled.patch
x86-smap-smap_violation-is-bogus-if-config_x86_smap-is-off.patch