From: Chris Spencer <christopher.spen...@sea.co.uk>

The i.MX8 does not currently have an SoC driver so soc_device_match does
not recognise it. Check the machine compatible instead.

Signed-off-by: Chris Spencer <christopher.spen...@sea.co.uk>
---
 drivers/crypto/caam/ctrl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index 16bbc72f041a..22cb7106133a 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -513,7 +513,8 @@ static int caam_probe(struct platform_device *pdev)
        dev_set_drvdata(dev, ctrlpriv);
        nprop = pdev->dev.of_node;
 
-       caam_imx = (bool)soc_device_match(imx_soc);
+       caam_imx = soc_device_match(imx_soc) ||
+               of_machine_is_compatible("fsl,imx8mq");
 
        /* Enable clocking */
        clk = caam_drv_identify_clk(&pdev->dev, "ipg");
-- 
2.17.1

Reply via email to