Commit b4587456 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Herbert Xu

crypto: mv_cesa - remove NO_IRQ reference

Drivers should not use NO_IRQ, as we are trying to get rid of that.
In this case, the call to irq_of_parse_and_map() is both wrong
(as it returns '0' on failure, not NO_IRQ) and unnecessary
(as platform_get_irq() does the same thing)

This removes the call to irq_of_parse_and_map() and checks for
the error code correctly.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ba22a1e2
...@@ -1091,11 +1091,8 @@ static int mv_probe(struct platform_device *pdev) ...@@ -1091,11 +1091,8 @@ static int mv_probe(struct platform_device *pdev)
cp->max_req_size = cp->sram_size - SRAM_CFG_SPACE; cp->max_req_size = cp->sram_size - SRAM_CFG_SPACE;
if (pdev->dev.of_node) irq = platform_get_irq(pdev, 0);
irq = irq_of_parse_and_map(pdev->dev.of_node, 0); if (irq < 0) {
else
irq = platform_get_irq(pdev, 0);
if (irq < 0 || irq == NO_IRQ) {
ret = irq; ret = irq;
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment