aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/caamhash.c14
-rw-r--r--drivers/crypto/caam/caamrng.c7
2 files changed, 15 insertions, 6 deletions
diff --git a/drivers/crypto/caam/caamhash.c b/drivers/crypto/caam/caamhash.c
index 895aaf2bca92..dca3c1904eda 100644
--- a/drivers/crypto/caam/caamhash.c
+++ b/drivers/crypto/caam/caamhash.c
@@ -1736,8 +1736,11 @@ static void __exit caam_algapi_hash_exit(void)
1736 struct caam_hash_alg *t_alg, *n; 1736 struct caam_hash_alg *t_alg, *n;
1737 1737
1738 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0"); 1738 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0");
1739 if (!dev_node) 1739 if (!dev_node) {
1740 return; 1740 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec4.0");
1741 if (!dev_node)
1742 return;
1743 }
1741 1744
1742 pdev = of_find_device_by_node(dev_node); 1745 pdev = of_find_device_by_node(dev_node);
1743 if (!pdev) 1746 if (!pdev)
@@ -1812,8 +1815,11 @@ static int __init caam_algapi_hash_init(void)
1812 int i = 0, err = 0; 1815 int i = 0, err = 0;
1813 1816
1814 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0"); 1817 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0");
1815 if (!dev_node) 1818 if (!dev_node) {
1816 return -ENODEV; 1819 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec4.0");
1820 if (!dev_node)
1821 return -ENODEV;
1822 }
1817 1823
1818 pdev = of_find_device_by_node(dev_node); 1824 pdev = of_find_device_by_node(dev_node);
1819 if (!pdev) 1825 if (!pdev)
diff --git a/drivers/crypto/caam/caamrng.c b/drivers/crypto/caam/caamrng.c
index e2bfe161dece..ccedb54317e1 100644
--- a/drivers/crypto/caam/caamrng.c
+++ b/drivers/crypto/caam/caamrng.c
@@ -284,8 +284,11 @@ static int __init caam_rng_init(void)
284 struct caam_drv_private *priv; 284 struct caam_drv_private *priv;
285 285
286 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0"); 286 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0");
287 if (!dev_node) 287 if (!dev_node) {
288 return -ENODEV; 288 dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec4.0");
289 if (!dev_node)
290 return -ENODEV;
291 }
289 292
290 pdev = of_find_device_by_node(dev_node); 293 pdev = of_find_device_by_node(dev_node);
291 if (!pdev) 294 if (!pdev)