mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
iio: adc: xilinx-ams: fix return error variable
Return irq instead of ret which always equals to zero here.
Fixes: d5c70627a7
("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>
This commit is contained in:
parent
bb52d3691d
commit
f8ef475aa0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user