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

fpga: versal: remove incorrect of_match_ptr annotation

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

drivers/fpga/versal-fpga.c:62:34: error: unused variable 'versal_fpga_of_match' [-Werror,-Wunused-const-variable]

Acked-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250225163510.4168911-1-arnd@kernel.org
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>

authored by

Arnd Bergmann and committed by
Xu Yilun
e19890a0 0f05886a

+1 -1
+1 -1
drivers/fpga/versal-fpga.c
··· 69 69 .probe = versal_fpga_probe, 70 70 .driver = { 71 71 .name = "versal_fpga_manager", 72 - .of_match_table = of_match_ptr(versal_fpga_of_match), 72 + .of_match_table = versal_fpga_of_match, 73 73 }, 74 74 }; 75 75 module_platform_driver(versal_fpga_driver);