]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
tpm: ftpm_tee: remove incorrect of_match_ptr annotation
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Feb 2025 16:37:15 +0000 (17:37 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 27 Mar 2025 13:34:04 +0000 (15:34 +0200)
Building with W=1 shows a warning about of_ftpm_tee_ids being unused when
CONFIG_OF is disabled:

    drivers/char/tpm/tpm_ftpm_tee.c:356:34: error: unused variable 'of_ftpm_tee_ids' [-Werror,-Wunused-const-variable]

Drop the unnecessary of_match_ptr().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sumit Garg <sumit.garg@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_ftpm_tee.c

index 139556b21cc6493d10ea7fdde49183a1517a2c54..8d9209dfc384285c3d7442b3af2137943a0cbbe4 100644 (file)
@@ -362,7 +362,7 @@ MODULE_DEVICE_TABLE(of, of_ftpm_tee_ids);
 static struct platform_driver ftpm_tee_plat_driver = {
        .driver = {
                .name = "ftpm-tee",
-               .of_match_table = of_match_ptr(of_ftpm_tee_ids),
+               .of_match_table = of_ftpm_tee_ids,
        },
        .shutdown = ftpm_plat_tee_shutdown,
        .probe = ftpm_plat_tee_probe,