[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250225163510.4168911-1-arnd@kernel.org>
Date: Tue, 25 Feb 2025 17:35:07 +0100
From: Arnd Bergmann <arnd@...nel.org>
To: Moritz Fischer <mdf@...nel.org>,
Wu Hao <hao.wu@...el.com>,
Xu Yilun <yilun.xu@...el.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Tom Rix <trix@...hat.com>,
linux-fpga@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] fpga: versal: remove incorrect of_match_ptr annotation
From: Arnd Bergmann <arnd@...db.de>
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@...el.com>
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/fpga/versal-fpga.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c
index 3710e8f01be2..e6189106c468 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);
--
2.39.5
Powered by blists - more mailing lists