summaryrefslogtreecommitdiff
path: root/drivers/crypto/caam
diff options
context:
space:
mode:
authorAymen Sghaier <aymen.sghaier@nxp.com>2017-11-13 10:56:02 +0100
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit42ee4096aefc49e6bd8f14efa58c902c26c96ca5 (patch)
tree338129debfb839d2ff949ff6e47848af59ac0d1b /drivers/crypto/caam
parentb02dd8f0f9d635a75278dd99245f82323e19e341 (diff)
MLK-15473-7: crypto: caam: Fix CAAM driver build for i.MX6
Add a check for CONFIG_HAVE_IMX8_SOC befor imx8_get_soc_revision() call to avoid i.MX6 build fail. The generic imx_get_soc_revision() call is not ready to use. Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r--drivers/crypto/caam/jr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/caam/jr.c b/drivers/crypto/caam/jr.c
index 6d2a50a17893..6b457749e02d 100644
--- a/drivers/crypto/caam/jr.c
+++ b/drivers/crypto/caam/jr.c
@@ -550,8 +550,10 @@ static int caam_jr_probe(struct platform_device *pdev)
* with RNG un-instantiated. It is instantiated
* here unlike REV_B0 and later.
*/
+#ifdef CONFIG_HAVE_IMX8_SOC
if (imx8_get_soc_revision() == IMX_CHIP_REVISION_1_0)
error = inst_rng_imx8(pdev);
+#endif /* CONFIG_HAVE_IMX8_SOC */
} else {
/*
* This call is done for legacy SOCs: