aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-06-17 17:14:45 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2019-06-27 02:28:01 -0400
commitc8c74647b2945e3522b77b659917766d7e1c6ed9 (patch)
tree487f1474d24c98253704f0c46f8fa4bda3e31576
parent8d3bcb9900ca5a193088c1f2d20c92865482368b (diff)
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: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/talitos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index c865f5d5eaba..cb2da0921392 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -3414,7 +3414,7 @@ static int talitos_probe(struct platform_device *ofdev)
3414 if (err) 3414 if (err)
3415 goto err_out; 3415 goto err_out;
3416 3416
3417 if (of_device_is_compatible(np, "fsl,sec1.0")) { 3417 if (has_ftr_sec1(priv)) {
3418 if (priv->num_channels == 1) 3418 if (priv->num_channels == 1)
3419 tasklet_init(&priv->done_task[0], talitos1_done_ch0, 3419 tasklet_init(&priv->done_task[0], talitos1_done_ch0,
3420 (unsigned long)dev); 3420 (unsigned long)dev);