Skip to content

Commit

Permalink
fpga: altera-freeze-bridge: Address warning about unused variable
Browse files Browse the repository at this point in the history
warning: unused variable 'altera_freeze_br_of_match'
 [-Wunused-const-variable]
  static const struct of_device_id altera_freeze_br_of_match[] = {

Fixes: ca24a64 ("fpga: add altera freeze bridge support")
Cc: Tom Rix <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Moritz Fischer <[email protected]>
  • Loading branch information
mfischer committed Jul 24, 2021
1 parent 82fb70b commit e3fd0cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/fpga/altera-freeze-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,13 @@ static const struct fpga_bridge_ops altera_freeze_br_br_ops = {
.enable_show = altera_freeze_br_enable_show,
};

#ifdef CONFIG_OF
static const struct of_device_id altera_freeze_br_of_match[] = {
{ .compatible = "altr,freeze-bridge-controller", },
{},
};
MODULE_DEVICE_TABLE(of, altera_freeze_br_of_match);
#endif

static int altera_freeze_br_probe(struct platform_device *pdev)
{
Expand Down

0 comments on commit e3fd0cf

Please sign in to comment.