diff options
| author | Moritz Fischer <[email protected]> | 2021-07-02 03:54:03 +0000 |
|---|---|---|
| committer | Moritz Fischer <[email protected]> | 2021-07-24 22:10:30 +0000 |
| commit | 56ddc787706c7413da63fb6640361285f1bb1d55 (patch) | |
| tree | 2159796d764ba7c5e8e0ea5d70ab3fa0439e003a /drivers/fpga/xilinx-pr-decoupler.c | |
| parent | fpga: xiilnx-spi: Address warning about unused variable (diff) | |
| download | kernel-56ddc787706c7413da63fb6640361285f1bb1d55.tar.gz kernel-56ddc787706c7413da63fb6640361285f1bb1d55.zip | |
fpga: xilinx-pr-decoupler: Address warning about unused variable
warning: ‘xlnx_pr_decoupler_of_match’ defined but not used
[-Wunused-const-variable=]
static const struct of_device_id xlnx_pr_decoupler_of_match[] = {
Fixes: 7e961c12be42 ("fpga: Add support for Xilinx LogiCORE PR Decoupler")
Cc: Tom Rix <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-pr-decoupler.c')
| -rw-r--r-- | drivers/fpga/xilinx-pr-decoupler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/fpga/xilinx-pr-decoupler.c b/drivers/fpga/xilinx-pr-decoupler.c index ea2bde6e5bc4..e986ed47c4ed 100644 --- a/drivers/fpga/xilinx-pr-decoupler.c +++ b/drivers/fpga/xilinx-pr-decoupler.c @@ -81,6 +81,7 @@ static const struct fpga_bridge_ops xlnx_pr_decoupler_br_ops = { .enable_show = xlnx_pr_decoupler_enable_show, }; +#ifdef CONFIG_OF static const struct xlnx_config_data decoupler_config = { .name = "Xilinx PR Decoupler", }; @@ -99,6 +100,7 @@ static const struct of_device_id xlnx_pr_decoupler_of_match[] = { {}, }; MODULE_DEVICE_TABLE(of, xlnx_pr_decoupler_of_match); +#endif static int xlnx_pr_decoupler_probe(struct platform_device *pdev) { |
