Skip to content

Commit

Permalink
net: bcmgenet: Drop ACPI_PTR() to avoid compiler warning
Browse files Browse the repository at this point in the history
When compiled with CONFIG_ACPI=n, ACPI_PTR() will be no-op, and thus
genet_acpi_match table defined, but not used. Compiler is not happy about
such data. Drop ACPI_PTR() for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andy Shevchenko authored and David S. Miller committed Apr 20, 2020
1 parent 80ad41f commit d4d9b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/genet/bcmgenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -3740,7 +3740,7 @@ static struct platform_driver bcmgenet_driver = {
.name = "bcmgenet",
.of_match_table = bcmgenet_match,
.pm = &bcmgenet_pm_ops,
.acpi_match_table = ACPI_PTR(genet_acpi_match),
.acpi_match_table = genet_acpi_match,
},
};
module_platform_driver(bcmgenet_driver);
Expand Down

0 comments on commit d4d9b47

Please sign in to comment.