summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2019-09-09 23:55:29 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2019-09-13 21:20:47 +1000
commit9575d1a5c0780ea26ff8dd29c94a32be32ce3c85 (patch)
treee5d05be22c165872c08640abdf99d2350e21952f /drivers/crypto
parent67caef08a71fa6506fc16be58cd594c49b0605de (diff)
crypto: caam - Cast to long first before pointer conversion
While storing an int in a pointer is safe the compiler is not happy about it. So we need some extra casting in order to make this warning free. Fixes: 1d3f75bce123 ("crypto: caam - dispose of IRQ mapping only...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/jr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/caam/jr.c b/drivers/crypto/caam/jr.c
index d11956bc358f..fc97cde27059 100644
--- a/drivers/crypto/caam/jr.c
+++ b/drivers/crypto/caam/jr.c
@@ -488,7 +488,7 @@ static int caam_jr_init(struct device *dev)
static void caam_jr_irq_dispose_mapping(void *data)
{
- irq_dispose_mapping((int)data);
+ irq_dispose_mapping((unsigned long)data);
}
/*
@@ -546,7 +546,7 @@ static int caam_jr_probe(struct platform_device *pdev)
}
error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping,
- (void *)jrpriv->irq);
+ (void *)(unsigned long)jrpriv->irq);
if (error)
return error;