]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
crypto: talitos - Add fsl,sec1.0 compatible
authorLEROY Christophe <christophe.leroy@c-s.fr>
Fri, 17 Apr 2015 14:32:20 +0000 (16:32 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 01:14:44 +0000 (09:14 +0800)
We add a specific compatible for SEC1, to handle the differences
between SEC1 and SEC2+

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c

index f1406d7b0db5201069462931d7306d9160a2a960..c04074d08461e0e1953bb2cacf967ae5a8e439dd 100644 (file)
@@ -3086,9 +3086,16 @@ err_out:
 }
 
 static const struct of_device_id talitos_match[] = {
+#ifdef CONFIG_CRYPTO_DEV_TALITOS1
+       {
+               .compatible = "fsl,sec1.0",
+       },
+#endif
+#ifdef CONFIG_CRYPTO_DEV_TALITOS2
        {
                .compatible = "fsl,sec2.0",
        },
+#endif
        {},
 };
 MODULE_DEVICE_TABLE(of, talitos_match);