Skip to content

Commit

Permalink
drivers: net: xgene: fix for ACPI support without ACPI
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sfrothwell authored and davem330 committed Jun 24, 2015
1 parent 12d4ae9 commit 8beeef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/apm/xgene/xgene_enet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit 8beeef8

Please sign in to comment.