public inbox for dmaengine@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] dmaengine: jz4780: drop of_match_ptr from of_device_id table
@ 2020-11-20 16:22 Krzysztof Kozlowski
  2020-11-20 16:22 ` [PATCH 2/6] dmaengine: dw-axi-dmac: " Krzysztof Kozlowski
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2020-11-20 16:22 UTC (permalink / raw)
  To: linux-kernel, Dan Williams, Vinod Koul, dmaengine
  Cc: Krzysztof Kozlowski, Zubair Lutfullah Kakakhel, Paul Cercueil

The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it is not relevant here).  This fixes
compile warning (!CONFIG_OF on x86_64):

    drivers/dma/dma-jz4780.c:1031:34: warning:
        ‘jz4780_dma_dt_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/dma/dma-jz4780.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c
index a608efaa435f..612d353648cf 100644
--- a/drivers/dma/dma-jz4780.c
+++ b/drivers/dma/dma-jz4780.c
@@ -1044,7 +1044,7 @@ static struct platform_driver jz4780_dma_driver = {
 	.remove		= jz4780_dma_remove,
 	.driver	= {
 		.name	= "jz4780-dma",
-		.of_match_table = of_match_ptr(jz4780_dma_dt_match),
+		.of_match_table = jz4780_dma_dt_match,
 	},
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-24 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-20 16:22 [PATCH 1/6] dmaengine: jz4780: drop of_match_ptr from of_device_id table Krzysztof Kozlowski
2020-11-20 16:22 ` [PATCH 2/6] dmaengine: dw-axi-dmac: " Krzysztof Kozlowski
2020-11-20 16:23 ` [PATCH 3/6] dmaengine: mv_xor: " Krzysztof Kozlowski
2020-11-20 16:23 ` [PATCH 4/6] dmaengine: sf: " Krzysztof Kozlowski
2020-11-20 16:23 ` [PATCH 5/6] dmaengine: stm32: mark of_device_id table as maybe unused Krzysztof Kozlowski
2020-11-20 16:23 ` [PATCH 6/6] dmaengine: ti: drop of_match_ptr and " Krzysztof Kozlowski
2020-11-24 17:32 ` [PATCH 1/6] dmaengine: jz4780: drop of_match_ptr from of_device_id table Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox