mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-05 14:11:55 -05:00
drivers: net: xgene: fix for ACPI support without ACPI
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
12d4ae9d99
commit
8beeef8de4
@@ -871,6 +871,7 @@ static const struct net_device_ops xgene_ndev_ops = {
|
||||
.ndo_set_mac_address = xgene_enet_set_mac_address,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
static int xgene_get_port_id_acpi(struct device *dev,
|
||||
struct xgene_enet_pdata *pdata)
|
||||
{
|
||||
@@ -886,6 +887,7 @@ static int xgene_get_port_id_acpi(struct device *dev,
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user