The RD_REGISTER_LEGACY macro lacks the "dw" argument but still
references it inside the macro body. This causes build failures
or incorrect expansions if the macro is ever used.
Currently the macro is unused, so the issue is not visible, but
fix it now for consistency with WR_REGISTER_LEGACY and the other
register access macros.
Fixes: d0152168538e ("dmaengine: dw-edma: Move eDMA data pointer to debugfs node descriptor")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/dw-edma/dw-edma-v0-debugfs.c b/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
index 406f169b09a7..1dd3d2ae86ba 100644
--- a/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
+++ b/drivers/dma/dw-edma/dw-edma-v0-debugfs.c
@@ -47,7 +47,7 @@
#define WR_REGISTER_LEGACY(dw, name) \
{ dw, #name, REGS_ADDR(dw, type.legacy.wr_##name) }
-#define RD_REGISTER_LEGACY(name) \
+#define RD_REGISTER_LEGACY(dw, name) \
{ dw, #name, REGS_ADDR(dw, type.legacy.rd_##name) }
#define WR_REGISTER_UNROLL(dw, name) \
--
2.50.1