diff options
author | Manish Narani <manish.narani@xilinx.com> | 2018-07-23 20:32:02 +0530 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-07-29 12:52:21 +0100 |
commit | 50e8e9f3096bd4e9ce2f42da11f3824358a826a7 (patch) | |
tree | df8c5142ad558b288dc80a9b8bcd0721225d8faf /drivers/iio/adc/xilinx-xadc.h | |
parent | 81f5471838c279c97f0b46f18e766c2ac0de8806 (diff) | |
download | linux-50e8e9f3096bd4e9ce2f42da11f3824358a826a7.tar.gz |
iio: adc: xilinx: Remove platform_get_irq from xadc_remove function
This patch avoids getting irq number in xadc_remove function. Instead
store 'irq' in xadc struct and use xadc->irq wherever needed.
This patch also resolves a warning reported by coverity where it asks to
check return value of platform_get_irq() for any errors in xadc_remove.
Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/xilinx-xadc.h')
-rw-r--r-- | drivers/iio/adc/xilinx-xadc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/xilinx-xadc.h b/drivers/iio/adc/xilinx-xadc.h index 62edbdae1244..8c0009585c16 100644 --- a/drivers/iio/adc/xilinx-xadc.h +++ b/drivers/iio/adc/xilinx-xadc.h @@ -68,6 +68,7 @@ struct xadc { spinlock_t lock; struct completion completion; + int irq; }; struct xadc_ops { |