From 50e8e9f3096bd4e9ce2f42da11f3824358a826a7 Mon Sep 17 00:00:00 2001 From: Manish Narani Date: Mon, 23 Jul 2018 20:32:02 +0530 Subject: 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 Signed-off-by: Jonathan Cameron --- drivers/iio/adc/xilinx-xadc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/iio/adc/xilinx-xadc.h') 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 { -- cgit v1.2.3-59-g8ed1b