mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09: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:
parent
0f05886a40
commit
e19890a008
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user