From: Moritz Fischer Date: Fri, 2 Jul 2021 03:54:02 +0000 (-0700) Subject: fpga: xiilnx-spi: Address warning about unused variable X-Git-Tag: libata-5.15-2021-09-05~50^2~51^2~12 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1aa3fc699c11a6458d49837545b295361250a765;p=linux-2.6-block.git fpga: xiilnx-spi: Address warning about unused variable warning: ‘xlnx_spi_of_match’ defined but not used [-Wunused-const-variable] static const struct of_device_id xlnx_spi_of_match[] = { Fixes: 061c97d13f1a ("fpga manager: Add Xilinx slave serial SPI driver") Cc: Tom Rix Signed-off-by: Moritz Fischer --- diff --git a/drivers/fpga/xilinx-spi.c b/drivers/fpga/xilinx-spi.c index fee4d0abf6bf..b6bcf1d9233d 100644 --- a/drivers/fpga/xilinx-spi.c +++ b/drivers/fpga/xilinx-spi.c @@ -256,11 +256,13 @@ static int xilinx_spi_probe(struct spi_device *spi) return devm_fpga_mgr_register(&spi->dev, mgr); } +#ifdef CONFIG_OF static const struct of_device_id xlnx_spi_of_match[] = { { .compatible = "xlnx,fpga-slave-serial", }, {} }; MODULE_DEVICE_TABLE(of, xlnx_spi_of_match); +#endif static struct spi_driver xilinx_slave_spi_driver = { .driver = {