Skip to content

Commit

Permalink
crypto: caam - Propagate the real error code in caam_probe
Browse files Browse the repository at this point in the history
Instead of propagating a 'fake' error code, just propagate the real
one in the case of caam_drv_identify_clk() failure.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Horia Geant? <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Fabio Estevam authored and Herbert Xu committed Aug 24, 2015
1 parent 31f44d1 commit a3c0955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/crypto/caam/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static int caam_probe(struct platform_device *pdev)
ret = PTR_ERR(clk);
dev_err(&pdev->dev,
"can't identify CAAM ipg clk: %d\n", ret);
return -ENODEV;
return ret;
}
ctrlpriv->caam_ipg = clk;

Expand All @@ -449,7 +449,7 @@ static int caam_probe(struct platform_device *pdev)
ret = PTR_ERR(clk);
dev_err(&pdev->dev,
"can't identify CAAM mem clk: %d\n", ret);
return -ENODEV;
return ret;
}
ctrlpriv->caam_mem = clk;

Expand All @@ -458,7 +458,7 @@ static int caam_probe(struct platform_device *pdev)
ret = PTR_ERR(clk);
dev_err(&pdev->dev,
"can't identify CAAM aclk clk: %d\n", ret);
return -ENODEV;
return ret;
}
ctrlpriv->caam_aclk = clk;

Expand All @@ -467,7 +467,7 @@ static int caam_probe(struct platform_device *pdev)
ret = PTR_ERR(clk);
dev_err(&pdev->dev,
"can't identify CAAM emi_slow clk: %d\n", ret);
return -ENODEV;
return ret;
}
ctrlpriv->caam_emi_slow = clk;

Expand Down

0 comments on commit a3c0955

Please sign in to comment.