diff options
| author | Moritz Fischer <[email protected]> | 2021-07-02 03:54:04 +0000 |
|---|---|---|
| committer | Moritz Fischer <[email protected]> | 2021-07-24 22:10:30 +0000 |
| commit | 6f125e87184ea5f8ad677c2cc4a9c9c6e717554b (patch) | |
| tree | 3315d571257803f0f11d32a47a8239c9eab9e279 /drivers/fpga/zynqmp-fpga.c | |
| parent | fpga: xilinx-pr-decoupler: Address warning about unused variable (diff) | |
| download | kernel-6f125e87184ea5f8ad677c2cc4a9c9c6e717554b.tar.gz kernel-6f125e87184ea5f8ad677c2cc4a9c9c6e717554b.zip | |
fpga: zynqmp-fpga: Address warning about unused variable
warning: ‘zynqmp_fpga_of_match’ defined but not used
[-Wunused-const-variable=]
static const struct of_device_id zynqmp_fpga_of_match[] = {
Fixes: c09f7471127e ("fpga manager: Adding FPGA Manager support for Xilinx zynqmp")
Cc: Tom Rix <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
| -rw-r--r-- | drivers/fpga/zynqmp-fpga.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/fpga/zynqmp-fpga.c b/drivers/fpga/zynqmp-fpga.c index 125743c9797f..b3240f75f0c7 100644 --- a/drivers/fpga/zynqmp-fpga.c +++ b/drivers/fpga/zynqmp-fpga.c @@ -110,12 +110,13 @@ static int zynqmp_fpga_probe(struct platform_device *pdev) return devm_fpga_mgr_register(dev, mgr); } +#ifdef CONFIG_OF static const struct of_device_id zynqmp_fpga_of_match[] = { { .compatible = "xlnx,zynqmp-pcap-fpga", }, {}, }; - MODULE_DEVICE_TABLE(of, zynqmp_fpga_of_match); +#endif static struct platform_driver zynqmp_fpga_driver = { .probe = zynqmp_fpga_probe, |
