Commit 9575d1a5 authored by Herbert Xu's avatar Herbert Xu

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 67caef08
...@@ -488,7 +488,7 @@ static int caam_jr_init(struct device *dev) ...@@ -488,7 +488,7 @@ static int caam_jr_init(struct device *dev)
static void caam_jr_irq_dispose_mapping(void *data) 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) ...@@ -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, error = devm_add_action_or_reset(jrdev, caam_jr_irq_dispose_mapping,
(void *)jrpriv->irq); (void *)(unsigned long)jrpriv->irq);
if (error) if (error)
return error; return error;
......
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