mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-18 20:54:20 +00:00
net: bcmgenet: Drop ACPI_PTR() to avoid compiler warning
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>
This commit is contained in:
parent
80ad41f28a
commit
d4d9b47e4b
1 changed files with 1 additions and 1 deletions
|
@ -3740,7 +3740,7 @@ static struct platform_driver bcmgenet_driver = {
|
||||||
.name = "bcmgenet",
|
.name = "bcmgenet",
|
||||||
.of_match_table = bcmgenet_match,
|
.of_match_table = bcmgenet_match,
|
||||||
.pm = &bcmgenet_pm_ops,
|
.pm = &bcmgenet_pm_ops,
|
||||||
.acpi_match_table = ACPI_PTR(genet_acpi_match),
|
.acpi_match_table = genet_acpi_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
module_platform_driver(bcmgenet_driver);
|
module_platform_driver(bcmgenet_driver);
|
||||||
|
|
Loading…
Add table
Reference in a new issue