提交 8beeef8d 编写于 作者: S Stephen Rothwell 提交者: David S. Miller

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

Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 12d4ae9d
...@@ -871,6 +871,7 @@ static const struct net_device_ops xgene_ndev_ops = { ...@@ -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, ...@@ -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)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册