net: xgene-v2: remove incorrect ACPI_PTR annotation
[ Upstream commit 01358e8fe922f716c05d7864ac2213b2440026e7 ] Building with W=1 shows a warning about xge_acpi_match being unused when CONFIG_ACPI is disabled: drivers/net/ethernet/apm/xgene-v2/main.c:723:36: error: unused variable 'xge_acpi_match' [-Werror,-Wunused-const-variable] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20250225163341.4168238-2-arnd@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
459b3f7cf0
commit
f872f7aaa4
@@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
static const struct acpi_device_id xge_acpi_match[];
|
|
||||||
|
|
||||||
static int xge_get_resources(struct xge_pdata *pdata)
|
static int xge_get_resources(struct xge_pdata *pdata)
|
||||||
{
|
{
|
||||||
struct platform_device *pdev;
|
struct platform_device *pdev;
|
||||||
@@ -731,7 +729,7 @@ MODULE_DEVICE_TABLE(acpi, xge_acpi_match);
|
|||||||
static struct platform_driver xge_driver = {
|
static struct platform_driver xge_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "xgene-enet-v2",
|
.name = "xgene-enet-v2",
|
||||||
.acpi_match_table = ACPI_PTR(xge_acpi_match),
|
.acpi_match_table = xge_acpi_match,
|
||||||
},
|
},
|
||||||
.probe = xge_probe,
|
.probe = xge_probe,
|
||||||
.remove_new = xge_remove,
|
.remove_new = xge_remove,
|
||||||
|
|||||||
Reference in New Issue
Block a user