diff options
author | Lv Ruyi <lv.ruyi@zte.com.cn> | 2022-05-09 10:24:05 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-05-14 16:48:26 +0300 |
commit | f8ef475aa069cd72e9e7bdb2d60dc6a89e2bafad (patch) | |
tree | 725f8f20601a21c58523a246c87f8f7fafae1605 | |
parent | bb52d3691db8cf24cea049235223f3599778f264 (diff) | |
download | linux-f8ef475aa069cd72e9e7bdb2d60dc6a89e2bafad.tar.xz |
iio: adc: xilinx-ams: fix return error variable
Return irq instead of ret which always equals to zero here.
Fixes: d5c70627a794 ("iio: adc: Add Xilinx AMS driver")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/adc/xilinx-ams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/xilinx-ams.c b/drivers/iio/adc/xilinx-ams.c index a55396c1f8b2..a7687706012d 100644 --- a/drivers/iio/adc/xilinx-ams.c +++ b/drivers/iio/adc/xilinx-ams.c @@ -1409,7 +1409,7 @@ static int ams_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) - return ret; + return irq; ret = devm_request_irq(&pdev->dev, irq, &ams_irq, 0, "ams-irq", indio_dev); |