diff options
| author | Miaoqian Lin <[email protected]> | 2022-01-14 06:51:24 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2022-01-17 13:18:11 +0000 |
| commit | 30fee1d7462a446ade399c0819717a830cbdca69 (patch) | |
| tree | 89ddb869147b540e592224b6e902ed0f07f3ebe5 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | gpio: mpc8xxx: Fix IRQ check in mpc8xxx_probe (diff) | |
| download | kernel-30fee1d7462a446ade399c0819717a830cbdca69.tar.gz kernel-30fee1d7462a446ade399c0819717a830cbdca69.zip | |
gpio: idt3243x: Fix IRQ check in idt_gpio_probe
platform_get_irq() returns negative error number instead 0 on failure.
And the doc of platform_get_irq() provides a usage example:
int irq = platform_get_irq(pdev, 0);
if (irq < 0)
return irq;
Fix the check of return value to catch errors correctly.
Fixes: 4195926aedca ("gpio: Add support for IDT 79RC3243x GPIO controller")
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
