drivers: net: xgene: fix for ACPI support without ACPI
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 24 Jun 2015 07:29:51 +0000 (17:29 +1000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2015 08:00:57 +0000 (01:00 -0700)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c

index b334f279ce8dee064c94ea215cb90f17ae63c133..95153b234c7158c655d95b7882db729d966a36dc 100644 (file)
@@ -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)
 {