Skip to contentSkip to conversation

dmaengine: img-mdc: remove incorrect of_match_ptr annotation

PATCH Applied Arnd Bergmann 2 participants 2 messages Feb 25, 2025 – Feb 27, 2025 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: img-mdc: remove incorrect of_match_ptr annotation

From: Arnd Bergmann <[email protected]>

Building with W=1 shows a warning about of_ftpm_tee_ids being unused when CONFIG_OF is disabled:

drivers/dma/img-mdc-dma.c:863:34: error: unused variable 'mdc_dma_of_match' [-Werror,-Wunused-const-variable]

---
 drivers/dma/img-mdc-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/img-mdc-dma.c +1 -1
index 4127c1bdcca7..fd55bcd060ab 100644
@@ -1073,7 +1073,7 @@ static struct platform_driver mdc_dma_driver = {
 	.driver = {
 		.name = "img-mdc-dma",
 		.pm = &img_mdc_pm_ops,
-		.of_match_table = of_match_ptr(mdc_dma_of_match),
+		.of_match_table = mdc_dma_of_match,
 	},
 	.probe = mdc_dma_probe,
 	.remove = mdc_dma_remove,
Signature · 1 line
2.39.5
maintainer Applied
#1 lore raw
Quoted 6 lines · Arnd Bergmann

Building with W=1 shows a warning about of_ftpm_tee_ids being unused when CONFIG_OF is disabled:

drivers/dma/img-mdc-dma.c:863:34: error: unused variable 'mdc_dma_of_match' [-Werror,-Wunused-const-variable]

Applied, thanks!

[1/1] dmaengine: img-mdc: remove incorrect of_match_ptr annotation

      commit: 186fdd3d87e7b77f7537ff65f686d029cb6560d2

Best regards,

Signature · 1 line
~Vinod