Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3c09550 authored by Fabio Estevam's avatar Fabio Estevam Committed by Herbert Xu
Browse files

crypto: caam - Propagate the real error code in caam_probe



Instead of propagating a 'fake' error code, just propagate the real
one in the case of caam_drv_identify_clk() failure.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: default avatarHoria Geant? <horia.geanta@freescale.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 31f44d15
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;

@@ -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;

@@ -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;

@@ -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;