]> www.infradead.org Git - users/willy/xarray.git/commitdiff
dmaengine: img-mdc: remove incorrect of_match_ptr annotation
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Feb 2025 16:33:12 +0000 (17:33 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 27 Feb 2025 07:04:57 +0000 (12:34 +0530)
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>
drivers/dma/img-mdc-dma.c

index 4127c1bdcca7c8b1b7775b9f403ef18df4423eb7..fd55bcd060ab89e7a871e4db26c4519985e90c2b 100644 (file)
@@ -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,