Commit 1aa3fc69 authored by Moritz Fischer's avatar Moritz Fischer

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: 061c97d1 ("fpga manager: Add Xilinx slave serial SPI driver")
Cc: Tom Rix <trix@redhat.com>
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
parent e3fd0cfb
...@@ -256,11 +256,13 @@ static int xilinx_spi_probe(struct spi_device *spi) ...@@ -256,11 +256,13 @@ static int xilinx_spi_probe(struct spi_device *spi)
return devm_fpga_mgr_register(&spi->dev, mgr); return devm_fpga_mgr_register(&spi->dev, mgr);
} }
#ifdef CONFIG_OF
static const struct of_device_id xlnx_spi_of_match[] = { static const struct of_device_id xlnx_spi_of_match[] = {
{ .compatible = "xlnx,fpga-slave-serial", }, { .compatible = "xlnx,fpga-slave-serial", },
{} {}
}; };
MODULE_DEVICE_TABLE(of, xlnx_spi_of_match); MODULE_DEVICE_TABLE(of, xlnx_spi_of_match);
#endif
static struct spi_driver xilinx_slave_spi_driver = { static struct spi_driver xilinx_slave_spi_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment