]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
iio: adc: twl4030: Fix an error handling path in 'twl4030_madc_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 23 Sep 2017 06:06:18 +0000 (08:06 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:48:50 +0000 (09:48 -0500)
commit4d70d2197d0805637691744e55fe0e898c998bd5
treec9b706ddb73ec8f2eece64fdb365c8ae774b1abe
parent6ea0ae061e91602eea3d63a5baa0bd3bd50ea21f
iio: adc: twl4030: Fix an error handling path in 'twl4030_madc_probe()'

BugLink: http://bugs.launchpad.net/bugs/1723145
commit 245a396a9b1a67ac5c3228737c261b3e48708a2a upstream.

If 'devm_regulator_get()' fails, we should go through the existing error
handling path instead of returning directly, as done is all the other
error handling paths in this function.

Fixes: 7cc97d77ee8a ("iio: adc: twl4030: Fix ADC[3:6] readings")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/iio/adc/twl4030-madc.c