Re: [PATCH] staging: iio: adc: fix error return code in ad7606_par_probe()

2017-08-12 Thread Jonathan Cameron
On Wed, 9 Aug 2017 10:38:56 -0500 "Gustavo A. R. Silva" wrote: > platform_get_irq() returns an error code, but the ad7606_par driver > ignores it and always returns -ENODEV. This is not correct and, > prevents -EPROBE_DEFER from being propagated properly. > > Print and

[PATCH] staging: iio: adc: fix error return code in ad7606_par_probe()

2017-08-09 Thread Gustavo A. R. Silva
platform_get_irq() returns an error code, but the ad7606_par driver ignores it and always returns -ENODEV. This is not correct and, prevents -EPROBE_DEFER from being propagated properly. Print and propagate the return value of platform_get_irq on failure. This issue was detected with the help of