iio: adc: vf610: Propagate the real error when platform_get_irq() fails
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 3 Oct 2014 01:25:22 +0000 (22:25 -0300)
committerJonathan Cameron <jic23@kernel.org>
Wed, 22 Oct 2014 19:28:11 +0000 (20:28 +0100)
commit8552befa3086589876032d5e1ce5797ae2bb684b
treeba668f905c05e8cbf11d482e66d1ac86fe4cdf85
parentb12206e917ac34bec41b9ff93d37d8bd53a2b3bc
iio: adc: vf610: Propagate the real error when platform_get_irq() fails

There is no need to pass a 'fake' return value when platform_get_irq() fails.

Propagate the real error instead.

While at it, only consider negative numbers returned by platform_get_irq()
as error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/vf610_adc.c