diff options
author | Peng Fan <van.freenix@gmail.com> | 2015-08-30 16:12:57 +0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-31 16:13:16 +0100 |
commit | f6707ef7a3c9196faee1841f4d12e990239f5dae (patch) | |
tree | 175c07e1475c907c64a26a5681083186a9ef2053 /drivers/iio/adc | |
parent | a8dbc64a2619b82ec0106f2c54174a94d74da620 (diff) | |
download | linux-f6707ef7a3c9196faee1841f4d12e990239f5dae.tar.bz2 |
staging: iio: adc: lpc32xx: use correct reutrn value
To lpc32xx_adc driver, when platform_get_resource or
platform_get_irq failed, we should use -ENXIO as a
return value, but not -EBUSY.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
0 files changed, 0 insertions, 0 deletions