]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iio: adc: xilinx: Remove platform_get_irq from xadc_remove function
authorManish Narani <manish.narani@xilinx.com>
Mon, 23 Jul 2018 15:02:02 +0000 (20:32 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Jul 2018 11:52:21 +0000 (12:52 +0100)
commit50e8e9f3096bd4e9ce2f42da11f3824358a826a7
treedf8c5142ad558b288dc80a9b8bcd0721225d8faf
parent81f5471838c279c97f0b46f18e766c2ac0de8806
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>
drivers/iio/adc/xilinx-xadc-core.c
drivers/iio/adc/xilinx-xadc.h