[PATCH 3/6] crypto: caam - pbl-init: use DMA_ADDRESS_BROKEN instead of NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While functionally the same, DMA_ADDRESS_BROKEN marks that the code is
in need of improvement, so it should be used for documentation purposes.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 drivers/crypto/caam/pbl-init.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/caam/pbl-init.c b/drivers/crypto/caam/pbl-init.c
index 08fad4525a21..832793031cf8 100644
--- a/drivers/crypto/caam/pbl-init.c
+++ b/drivers/crypto/caam/pbl-init.c
@@ -457,7 +457,8 @@ int early_caam_init(struct caam_ctrl __iomem *_caam, bool is_imx)
 	if (IN_PBL)
 		g_jrdata = &pbl_jrdata;
 	else
-		g_jrdata = dma_alloc_coherent(sizeof(*g_jrdata), NULL);
+		g_jrdata = dma_alloc_coherent(sizeof(*g_jrdata),
+					      DMA_ADDRESS_BROKEN);
 
 	jr = IOMEM(caam) + 0x1000;
 	r4tst = &caam->r4tst[0];
-- 
2.39.5





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux