mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
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>
This commit is contained in:
@@ -69,7 +69,7 @@ static struct platform_driver versal_fpga_driver = {
|
||||
.probe = versal_fpga_probe,
|
||||
.driver = {
|
||||
.name = "versal_fpga_manager",
|
||||
.of_match_table = of_match_ptr(versal_fpga_of_match),
|
||||
.of_match_table = versal_fpga_of_match,
|
||||
},
|
||||
};
|
||||
module_platform_driver(versal_fpga_driver);
|
||||
|
||||
Reference in New Issue
Block a user