Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: img-mdc: remove incorrect of_match_ptr annotation

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]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250225163315.4168033-1-arnd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Arnd Bergmann and committed by
Vinod Koul
186fdd3d 2c17e9ea

+1 -1
+1 -1
drivers/dma/img-mdc-dma.c
··· 1073 1073 .driver = { 1074 1074 .name = "img-mdc-dma", 1075 1075 .pm = &img_mdc_pm_ops, 1076 - .of_match_table = of_match_ptr(mdc_dma_of_match), 1076 + .of_match_table = mdc_dma_of_match, 1077 1077 }, 1078 1078 .probe = mdc_dma_probe, 1079 1079 .remove = mdc_dma_remove,