Merge tag 'defconfig-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / drivers / fpga / xilinx-spi.c
index fee4d0a..b6bcf1d 100644 (file)
@@ -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 = {