Files
linux/drivers/mfd
Lv Ruyi c8bb7f074b mfd: ipaq-micro: Fix error check return value of platform_get_irq()
[ Upstream commit 3b49ae380c ]

platform_get_irq() return negative value on failure, so null check of
irq is incorrect. Fix it by comparing whether it is less than zero.

Fixes: dcc21cc09e ("mfd: Add driver for Atmel Microcontroller on iPaq h3xxx")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220412085305.2533030-1-lv.ruyi@zte.com.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-29 09:26:20 +09:00
..
2016-08-31 13:48:25 +01:00
2015-10-30 17:19:51 +00:00
2023-05-16 09:38:20 +09:00
2016-08-10 09:25:18 +01:00
2013-07-31 13:01:29 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:09:01 +01:00