spi: ppc4xx: Revert "handle irq_of_parse_and_map() errors"
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Sep 2024 10:28:26 +0000 (13:28 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 2 Sep 2024 11:56:30 +0000 (12:56 +0100)
The commit had been applied twice as
  0f245463b01e ("spi: ppc4xx: handle irq_of_parse_and_map() errors")
and
  f1011ba20b83 ("spi: ppc4xx: handle irq_of_parse_and_map() errors")

This reverts commit f1011ba20b83da3ee70dcb4a6d9d282a718916fa.

Fixes: f1011ba20b83 ("spi: ppc4xx: handle irq_of_parse_and_map() errors")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20240902102853.2476165-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ppc4xx.c

index 36722fa6c8bfd1ef30ea3b4e695e1de316f8faad..2c43b498432f8be329452d68fd1f91c5338e622c 100644 (file)
@@ -415,9 +415,6 @@ static int spi_ppc4xx_of_probe(struct platform_device *op)
                goto free_host;
        hw->irqnum = ret;
 
-       if (hw->irqnum <= 0)
-               goto free_host;
-
        ret = request_irq(hw->irqnum, spi_ppc4xx_int,
                          0, "spi_ppc4xx_of", (void *)hw);
        if (ret) {