diff options
Diffstat (limited to 'drivers/crypto/caam/caamalg.c')
-rw-r--r-- | drivers/crypto/caam/caamalg.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index 534a36469d57..4eec389184d3 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c | |||
@@ -2267,8 +2267,11 @@ static void __exit caam_algapi_exit(void) | |||
2267 | int i, err; | 2267 | int i, err; |
2268 | 2268 | ||
2269 | dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0"); | 2269 | dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0"); |
2270 | if (!dev_node) | 2270 | if (!dev_node) { |
2271 | return; | 2271 | dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec4.0"); |
2272 | if (!dev_node) | ||
2273 | return; | ||
2274 | } | ||
2272 | 2275 | ||
2273 | pdev = of_find_device_by_node(dev_node); | 2276 | pdev = of_find_device_by_node(dev_node); |
2274 | if (!pdev) | 2277 | if (!pdev) |
@@ -2350,8 +2353,11 @@ static int __init caam_algapi_init(void) | |||
2350 | int i = 0, err = 0; | 2353 | int i = 0, err = 0; |
2351 | 2354 | ||
2352 | dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0"); | 2355 | dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec-v4.0"); |
2353 | if (!dev_node) | 2356 | if (!dev_node) { |
2354 | return -ENODEV; | 2357 | dev_node = of_find_compatible_node(NULL, NULL, "fsl,sec4.0"); |
2358 | if (!dev_node) | ||
2359 | return -ENODEV; | ||
2360 | } | ||
2355 | 2361 | ||
2356 | pdev = of_find_device_by_node(dev_node); | 2362 | pdev = of_find_device_by_node(dev_node); |
2357 | if (!pdev) | 2363 | if (!pdev) |