mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 13:04:03 +08:00
soc: xilinx: Do not check for 0 return after calling platform_get_irq()
There is no possible for platform_get_irq() to return 0. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20230803104807.814005-3-ruanjinjie@huawei.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
c6cb31b9f6
commit
746db5d0b6
@ -243,8 +243,8 @@ static int zynqmp_pm_probe(struct platform_device *pdev)
|
||||
}
|
||||
} else if (of_property_present(pdev->dev.of_node, "interrupts")) {
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq <= 0)
|
||||
return -ENXIO;
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
|
||||
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
|
||||
zynqmp_pm_isr,
|
||||
|
Loading…
Reference in New Issue
Block a user