From: Arnd Bergmann Date: Tue, 25 Feb 2025 16:35:07 +0000 (+0100) Subject: fpga: versal: remove incorrect of_match_ptr annotation X-Git-Tag: v6.15-rc1~78^2~6^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e19890a0088b5884cb9e6a6f5717dc56cc45fc31;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20250225163510.4168911-1-arnd@kernel.org Signed-off-by: Xu Yilun --- diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c index 3710e8f01be25..e6189106c4686 100644 --- a/drivers/fpga/versal-fpga.c +++ b/drivers/fpga/versal-fpga.c @@ -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);