]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: smsc911x: skip acpi_device_id table when !CONFIG_ACPI
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 5 Apr 2021 18:15:48 +0000 (20:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Apr 2021 22:05:02 +0000 (15:05 -0700)
commitcc0626c2aaed8e475efdd85fa374b497a7192e35
tree79509ebb361db07343f210f4309a5e5c63b46380
parentd392ecd1bc29ae15b0e284d5f732c2d36f244271
net: smsc911x: skip acpi_device_id table when !CONFIG_ACPI

The driver can match via multiple methods.  Its acpi_device_id table is
referenced via ACPI_PTR() so it will be unused for !CONFIG_ACPI builds:

  drivers/net/ethernet/smsc/smsc911x.c:2652:36: warning:
    ‘smsc911x_acpi_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c