[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210702035404.397853-2-mdf@kernel.org>
Date: Thu, 1 Jul 2021 20:54:01 -0700
From: Moritz Fischer <mdf@...nel.org>
To: linux-fpga@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Moritz Fischer <mdf@...nel.org>,
Tom Rix <trix@...hat.com>, kernel test robot <lkp@...el.com>
Subject: [PATCH 1/4] fpga: altera-freeze-bridge: Address warning about unused variable
warning: unused variable 'altera_freeze_br_of_match'
[-Wunused-const-variable]
static const struct of_device_id altera_freeze_br_of_match[] = {
Fixes: ca24a648f535 ("fpga: add altera freeze bridge support")
Cc: Tom Rix <trix@...hat.com>
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Moritz Fischer <mdf@...nel.org>
---
drivers/fpga/altera-freeze-bridge.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/fpga/altera-freeze-bridge.c b/drivers/fpga/altera-freeze-bridge.c
index dd58c4aea92e..7d22a44d652e 100644
--- a/drivers/fpga/altera-freeze-bridge.c
+++ b/drivers/fpga/altera-freeze-bridge.c
@@ -198,11 +198,13 @@ static const struct fpga_bridge_ops altera_freeze_br_br_ops = {
.enable_show = altera_freeze_br_enable_show,
};
+#ifdef CONFIG_OF
static const struct of_device_id altera_freeze_br_of_match[] = {
{ .compatible = "altr,freeze-bridge-controller", },
{},
};
MODULE_DEVICE_TABLE(of, altera_freeze_br_of_match);
+#endif
static int altera_freeze_br_probe(struct platform_device *pdev)
{
--
2.32.0
Powered by blists - more mailing lists