crypto: caam - fix COMPILE_TEST breakage

<mach/imx/*.h> doesn't exist when we compile allyesconfig for sandbox,
so stub out the macros used from it, so CAAM can continue to build
independently of selected architecture.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 drivers/crypto/caam/rng_self_test.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/crypto/caam/rng_self_test.c 
b/drivers/crypto/caam/rng_self_test.c
index a42d9cad1639..f008908b903e 100644
--- a/drivers/crypto/caam/rng_self_test.c
+++ b/drivers/crypto/caam/rng_self_test.c
@@ -47,8 +47,14 @@
 #include <dma.h>
 #include <common.h>
 #include <linux/kernel.h>
+
+#ifdef CONFIG_ARCH_IMX6
 #include <mach/imx/generic.h>
 #include <mach/imx/imx6.h>
+#else
+#define cpu_is_mx6()                   false
+#define imx6_cannot_write_l2x0()       false
+#endif
 
 #include "error.h"
 #include "regs.h"
-- 
2.47.3


Reply via email to