[PATCH -next] dmaengine: mediatek: Remove redundant of_match_ptr()

Ruan Jinjie ruanjinjie at huawei.com
Tue Aug 8 06:04:56 PDT 2023


The driver depends on CONFIG_OF, it is not necessary to use
of_match_ptr() here.

Signed-off-by: Ruan Jinjie <ruanjinjie at huawei.com>
---
 drivers/dma/mediatek/mtk-uart-apdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c
index c51dc017b48a..98b4ddeaaff4 100644
--- a/drivers/dma/mediatek/mtk-uart-apdma.c
+++ b/drivers/dma/mediatek/mtk-uart-apdma.c
@@ -644,7 +644,7 @@ static struct platform_driver mtk_uart_apdma_driver = {
 	.driver = {
 		.name		= KBUILD_MODNAME,
 		.pm		= &mtk_uart_apdma_pm_ops,
-		.of_match_table = of_match_ptr(mtk_uart_apdma_match),
+		.of_match_table = mtk_uart_apdma_match,
 	},
 };
 
-- 
2.34.1




More information about the Linux-mediatek mailing list