diff options
author | Shengzhou Liu <Shengzhou.Liu@freescale.com> | 2012-07-13 18:49:21 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-08-01 05:47:31 -0400 |
commit | 95bcaa39053ff518021572ca00ebf626ee8cbaf8 (patch) | |
tree | 98b87dc54c548fba12510ab901c0a222b8e1aa18 /drivers/crypto/caam/caamrng.c | |
parent | 4a905077134849ea30d1c6dbf4071ea9e8e71b93 (diff) |
crypto: caam - add backward compatible string sec4.0
In some device trees of previous version, there were string "fsl,sec4.0".
To be backward compatible with device trees, we first check "fsl,sec-v4.0",
if it fails, then check for "fsl,sec4.0".
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
extended to include new hash and rng code, which was omitted from
the previous version of this patch during a rebase of the SDK
version.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/caamrng.c')
-rw-r--r-- | drivers/crypto/caam/caamrng.c | 7 |
1 files changed, 5 insertions, 2 deletions
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) |