]> Pileus Git - ~andy/linux/blobdiff - drivers/crypto/caam/caamrng.c
crypto: caam - add backward compatible string sec4.0
[~andy/linux] / drivers / crypto / caam / caamrng.c
index e2bfe161dece0fd433f457659c12871eff4fc706..ccedb54317e1620b6553aec96c0b7cf3198460de 100644 (file)
@@ -284,8 +284,11 @@ static int __init caam_rng_init(void)
        struct caam_drv_private *priv;
 
        dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0");
-       if (!dev_node)
-               return -ENODEV;
+       if (!dev_node) {
+               dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec4.0");
+               if (!dev_node)
+                       return -ENODEV;
+       }
 
        pdev = of_find_device_by_node(dev_node);
        if (!pdev)