]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: bcmgenet: Drop ACPI_PTR() to avoid compiler warning
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 Apr 2020 21:51:17 +0000 (00:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 23:24:53 +0000 (16:24 -0700)
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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c

index d975338bf78df35dfb6fd5a82961f89dde1621bb..9f2f0e68165685d849e81d0dbf28f89b6e01d62e 100644 (file)
@@ -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);