mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
net: hisilicon: hns_mdio: remove incorrect ACPI_PTR annotation
Building with W=1 shows a warning about hns_mdio_acpi_match being unused when CONFIG_ACPI is disabled: drivers/net/ethernet/hisilicon/hns_mdio.c:631:36: error: unused variable 'hns_mdio_acpi_match' [-Werror,-Wunused-const-variable] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20250225163341.4168238-1-arnd@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
af4a5da8ed
commit
9355f7277d
|
|
@ -640,7 +640,7 @@ static struct platform_driver hns_mdio_driver = {
|
|||
.driver = {
|
||||
.name = MDIO_DRV_NAME,
|
||||
.of_match_table = hns_mdio_match,
|
||||
.acpi_match_table = ACPI_PTR(hns_mdio_acpi_match),
|
||||
.acpi_match_table = hns_mdio_acpi_match,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user