diff options
| author | 2017-11-30 21:13:34 +0530 | |
|---|---|---|
| committer | 2017-12-02 12:21:10 +0000 | |
| commit | cccae604868c821754883edee6ced81b22e6b75a (patch) | |
| tree | f0888afd28e36398995a596fd11693e47654fff4 /include/linux | |
| parent | iio: accel: bmc150: Add OF device ID table (diff) | |
| download | linux-dev-cccae604868c821754883edee6ced81b22e6b75a.tar.xz linux-dev-cccae604868c821754883edee6ced81b22e6b75a.zip | |
iio: trigger: Fix platform_get_irq's error checking
The platform_get_irq() function returns negative if an error occurs.
zero or positive number on success. platform_get_irq() error checking
for zero is not correct.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
