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>
* 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: