Skip to content

Commit fb3bf46

Browse files
arndbjarkkojs
authored andcommitted
tpm: ftpm_tee: 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/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>
1 parent 17d253a commit fb3bf46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/char/tpm/tpm_ftpm_tee.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ MODULE_DEVICE_TABLE(of, of_ftpm_tee_ids);
362362
static struct platform_driver ftpm_tee_plat_driver = {
363363
.driver = {
364364
.name = "ftpm-tee",
365-
.of_match_table = of_match_ptr(of_ftpm_tee_ids),
365+
.of_match_table = of_ftpm_tee_ids,
366366
},
367367
.shutdown = ftpm_plat_tee_shutdown,
368368
.probe = ftpm_plat_tee_probe,

0 commit comments

Comments
 (0)