Skip to content

Commit e19890a

Browse files
arndbXu Yilun
authored andcommitted
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>
1 parent 0f05886 commit e19890a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/fpga/versal-fpga.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static struct platform_driver versal_fpga_driver = {
6969
.probe = versal_fpga_probe,
7070
.driver = {
7171
.name = "versal_fpga_manager",
72-
.of_match_table = of_match_ptr(versal_fpga_of_match),
72+
.of_match_table = versal_fpga_of_match,
7373
},
7474
};
7575
module_platform_driver(versal_fpga_driver);

0 commit comments

Comments
 (0)