Commit c8c74647 authored by Christophe Leroy's avatar Christophe Leroy Committed by Herbert Xu

crypto: talitos - eliminate unneeded 'done' functions at build time

When building for SEC1 only, talitos2_done functions are unneeded
and should go away.

For this, use has_ftr_sec1() which will always return true when only
SEC1 support is being built, allowing GCC to drop TALITOS2 functions.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 8d3bcb99
...@@ -3414,7 +3414,7 @@ static int talitos_probe(struct platform_device *ofdev) ...@@ -3414,7 +3414,7 @@ static int talitos_probe(struct platform_device *ofdev)
if (err) if (err)
goto err_out; goto err_out;
if (of_device_is_compatible(np, "fsl,sec1.0")) { if (has_ftr_sec1(priv)) {
if (priv->num_channels == 1) if (priv->num_channels == 1)
tasklet_init(&priv->done_task[0], talitos1_done_ch0, tasklet_init(&priv->done_task[0], talitos1_done_ch0,
(unsigned long)dev); (unsigned long)dev);
......
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