projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb52d36
)
iio: adc: xilinx-ams: fix return error variable
author
Lv Ruyi
<lv.ruyi@zte.com.cn>
Mon, 9 May 2022 07:24:05 +0000
(07:24 +0000)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Sat, 14 May 2022 13:48:26 +0000
(14:48 +0100)
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>
drivers/iio/adc/xilinx-ams.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/xilinx-ams.c
b/drivers/iio/adc/xilinx-ams.c
index
a55396c
..
a768770
100644
(file)
--- 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);