Skip to content

Commit

Permalink
fpga: xilinx-pr-decoupler: Address warning about unused variable
Browse files Browse the repository at this point in the history
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: 7e961c1 ("fpga: Add support for Xilinx LogiCORE PR Decoupler")
Cc: Tom Rix <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
  • Loading branch information
mfischer committed Jul 24, 2021
1 parent 1aa3fc6 commit 56ddc78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/fpga/xilinx-pr-decoupler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand All @@ -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)
{
Expand Down

0 comments on commit 56ddc78

Please sign in to comment.