Lv Ruyi 3b49ae380c mfd: ipaq-micro: Fix error check return value of platform_get_irq()
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: dcc21cc09e3c ("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
2022-04-26 15:12:22 +01:00
..
2022-03-25 13:56:18 -07:00
2021-11-10 11:36:43 -08:00
2022-03-21 18:33:57 -07:00
2022-03-08 09:44:06 +00:00
2019-07-15 20:18:40 -07:00
2022-03-08 09:44:06 +00:00
2021-06-15 13:02:53 +01:00
2019-07-09 08:59:39 -07:00