RE: [PATCH] soc: aspeed: Fix IRQ check in aspeed_lpc_snoop_config_irq

From: ChiaWei Wang
Date: Sun Jan 16 2022 - 19:06:30 EST


> From: Miaoqian Lin <linmq006@xxxxxxxxx>
> Sent: Friday, January 14, 2022 2:44 PM
>
> 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: 524feb799408 ("soc: add aspeed folder and misc drivers")
> Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx>

Reviewed-by: Chia-Wei Wang <chiawei_wang@xxxxxxxxxxxxxx>

Thanks.