LF-3705-1: caam: imx8m: fix the built-in caam driver cannot match soc_id
authorAlice Guo <alice.guo@nxp.com>
Thu, 29 Apr 2021 05:48:03 +0000 (13:48 +0800)
committerAlice Guo <alice.guo@nxp.com>
Thu, 29 Apr 2021 10:59:57 +0000 (18:59 +0800)
commitd5df21ff810453741e23aa62de3e3911957c42b1
treeb11bd3117828ffd2f1a8c4f5a643b0f170f36be2
parent9db46794ad9925f34979936755818f08ba0c73d4
LF-3705-1: caam: imx8m: fix the built-in caam driver cannot match soc_id

drivers/soc/imx/soc-imx8m.c is probed later than the caam driver so that
return -EPROBE_DEFER is needed after calling soc_device_match() in
drivers/crypto/caam/ctrl.c. For i.MX8M, soc_device_match returning NULL
can be considered that the SoC device has not been probed yet, so it
returns -EPROBE_DEFER directly.

Fixes: 6375d33dce9a ("soc: imx8m: change to use platform driver")
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
drivers/crypto/caam/ctrl.c