Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8beeef8d authored by Stephen Rothwell's avatar Stephen Rothwell Committed by David S. Miller
Browse files

drivers: net: xgene: fix for ACPI support without ACPI

parent 12d4ae9d
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -871,6 +871,7 @@ static const struct net_device_ops xgene_ndev_ops = {
	.ndo_set_mac_address = xgene_enet_set_mac_address,
	.ndo_set_mac_address = xgene_enet_set_mac_address,
};
};


#ifdef CONFIG_ACPI
static int xgene_get_port_id_acpi(struct device *dev,
static int xgene_get_port_id_acpi(struct device *dev,
				  struct xgene_enet_pdata *pdata)
				  struct xgene_enet_pdata *pdata)
{
{
@@ -886,6 +887,7 @@ static int xgene_get_port_id_acpi(struct device *dev,


	return 0;
	return 0;
}
}
#endif


static int xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata)
static int xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata)
{
{