mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
crypto: caam - check irq_of_parse_and_map for errors
Irq_of_parse_and_map will return zero in case of error, so add a error check for that. Signed-off-by: Andrey Smirnov <[email protected]> Cc: Chris Healy <[email protected]> Cc: Lucas Stach <[email protected]> Cc: Horia Geantă <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Iuliana Prodan <[email protected]> Cc: [email protected] Cc: [email protected] Reviewed-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
05d2a75441
commit
549077d7d8
1 changed files with 4 additions and 0 deletions
|
|
@ -537,6 +537,10 @@ static int caam_jr_probe(struct platform_device *pdev)
|
|||
|
||||
/* Identify the interrupt */
|
||||
jrpriv->irq = irq_of_parse_and_map(nprop, 0);
|
||||
if (!jrpriv->irq) {
|
||||
dev_err(jrdev, "irq_of_parse_and_map failed\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Now do the platform independent part */
|
||||
error = caam_jr_init(jrdev); /* now turn on hardware */
|
||||
|
|
|
|||
Loading…
Reference in a new issue