Skip to contentSkip to conversation

fpga: versal: remove incorrect of_match_ptr annotation

PATCH Applied Arnd Bergmann 2 participants 2 messages Feb 25, 2025 – Mar 1, 2025 FPGA manager framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fpga: versal: remove incorrect of_match_ptr annotation

From: Arnd Bergmann <[email protected]>

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]

---
 drivers/fpga/versal-fpga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/versal-fpga.c +1 -1
index 3710e8f01be2..e6189106c468 100644
@@ -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);
Signature · 1 line
2.39.5
Applied
#1 lore raw
Quoted 9 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

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]

Sorry, I thought someone would take the whole series.

Applied to for-next.

Thanks,
Yilun