Miaoqian Lin 1c245358ce misc: atmel-ssc: Fix IRQ check in ssc_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: eb1f2930609b ("Driver for the Atmel on-chip SSC on AT32AP and AT91")
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220601123026.7119-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-10 15:29:56 +02:00
..
2022-04-24 17:25:10 +02:00
2021-09-27 15:39:40 +02:00
2022-03-04 12:02:19 +00:00
2021-05-13 17:03:20 +02:00
2022-04-24 17:32:14 +02:00
2021-10-05 15:47:18 +02:00
2021-03-02 22:41:23 +11:00