Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329716
b: refs/heads/master
c: 95bcaa3
h: refs/heads/master
v: v3
  • Loading branch information
Shengzhou Liu authored and Herbert Xu committed Aug 1, 2012
1 parent 506759a commit 777d09d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a905077134849ea30d1c6dbf4071ea9e8e71b93
refs/heads/master: 95bcaa39053ff518021572ca00ebf626ee8cbaf8
14 changes: 10 additions & 4 deletions trunk/drivers/crypto/caam/caamhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1736,8 +1736,11 @@ static void __exit caam_algapi_hash_exit(void)
struct caam_hash_alg *t_alg, *n;

dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0");
if (!dev_node)
return;
if (!dev_node) {
dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec4.0");
if (!dev_node)
return;
}

pdev = of_find_device_by_node(dev_node);
if (!pdev)
Expand Down Expand Up @@ -1812,8 +1815,11 @@ static int __init caam_algapi_hash_init(void)
int i = 0, err = 0;

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)
Expand Down
7 changes: 5 additions & 2 deletions trunk/drivers/crypto/caam/caamrng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 777d09d

Please sign in to comment.