diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-09-02 19:26:40 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-07 09:08:32 -0400 |
commit | b4587456fea4e2e3021341c4932bd89674c14824 (patch) | |
tree | 0d76f82b396b01f27b1733e79b34caf6ec9bd8b6 /drivers/crypto/mv_cesa.c | |
parent | ba22a1e2aa8ef7f8467f755cfe44b79784febefe (diff) |
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: Arnd Bergmann <arnd@arndb.de>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/mv_cesa.c')
-rw-r--r-- | drivers/crypto/mv_cesa.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c index e6b658faef63..104e9ce9400a 100644 --- a/drivers/crypto/mv_cesa.c +++ b/drivers/crypto/mv_cesa.c | |||
@@ -1091,11 +1091,8 @@ static int mv_probe(struct platform_device *pdev) | |||
1091 | 1091 | ||
1092 | cp->max_req_size = cp->sram_size - SRAM_CFG_SPACE; | 1092 | cp->max_req_size = cp->sram_size - SRAM_CFG_SPACE; |
1093 | 1093 | ||
1094 | if (pdev->dev.of_node) | 1094 | irq = platform_get_irq(pdev, 0); |
1095 | irq = irq_of_parse_and_map(pdev->dev.of_node, 0); | 1095 | if (irq < 0) { |
1096 | else | ||
1097 | irq = platform_get_irq(pdev, 0); | ||
1098 | if (irq < 0 || irq == NO_IRQ) { | ||
1099 | ret = irq; | 1096 | ret = irq; |
1100 | goto err; | 1097 | goto err; |
1101 | } | 1098 | } |