From: LEROY Christophe Date: Fri, 17 Apr 2015 14:32:20 +0000 (+0200) Subject: crypto: talitos - Add fsl,sec1.0 compatible X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~12156^2~275 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0635b7db143195281c5a29d272bb836be58af1d4;p=mirror_ubuntu-focal-kernel.git crypto: talitos - Add fsl,sec1.0 compatible We add a specific compatible for SEC1, to handle the differences between SEC1 and SEC2+ Signed-off-by: Christophe Leroy Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index f1406d7b0db5..c04074d08461 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -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);