From 4d77daaa5ae8b6897c5201e2d82e0c9d64f78250 Mon Sep 17 00:00:00 2001 From: Alice Guo Date: Thu, 29 Apr 2021 18:08:41 +0800 Subject: [PATCH] LF-3705-2: caam: imx8m: change to use of_match_node in run_descriptor_deco0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit LF-3705-1 provides imx8m_machine_match to match i.MX8M{Q,M,N,P}, so change to use to of_match_node which can simplify the code. Signed-off-by: Alice Guo Reviewed-by: Horia Geantă --- drivers/crypto/caam/ctrl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 2202b49c3c23..7fb1e74b1878 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -115,10 +115,7 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc, * Apparently on i.MX8M{Q,M,N,P} it doesn't matter if virt_en == 1 * and the following steps should be performed regardless */ - of_machine_is_compatible("fsl,imx8mq") || - of_machine_is_compatible("fsl,imx8mm") || - of_machine_is_compatible("fsl,imx8mn") || - of_machine_is_compatible("fsl,imx8mp")) { + of_match_node(imx8m_machine_match, of_root)) { clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0); while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) && -- 2.17.1