summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/gianfar.c
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@freescale.com>2015-07-31 15:38:31 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-07-31 22:41:49 (GMT)
commit8486830549189b109bfd40e8d38c6dd8b8f476db (patch)
tree97c08ee6941bb3e45528017db0d041c806761fdc /drivers/net/ethernet/freescale/gianfar.c
parent5175f7106cc55a1bcf97bf7d5ba0900017ebcef8 (diff)
downloadlinux-8486830549189b109bfd40e8d38c6dd8b8f476db.tar.xz
gianfar: Fix warning when CONFIG_PM off
CC drivers/net/ethernet/freescale/gianfar.o drivers/net/ethernet/freescale/gianfar.c:568:13: warning: 'lock_tx_qs' defined but not used [-Wunused-function] static void lock_tx_qs(struct gfar_private *priv) ^ drivers/net/ethernet/freescale/gianfar.c:576:13: warning: 'unlock_tx_qs' defined but not used [-Wunused-function] static void unlock_tx_qs(struct gfar_private *priv) ^ Reported-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.c')
-rw-r--r--drivers/net/ethernet/freescale/gianfar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c
index ff87502..caad327 100644
--- a/drivers/net/ethernet/freescale/gianfar.c
+++ b/drivers/net/ethernet/freescale/gianfar.c
@@ -565,6 +565,7 @@ static void gfar_ints_enable(struct gfar_private *priv)
}
}
+#ifdef CONFIG_PM
static void lock_tx_qs(struct gfar_private *priv)
{
int i;
@@ -580,6 +581,7 @@ static void unlock_tx_qs(struct gfar_private *priv)
for (i = 0; i < priv->num_tx_queues; i++)
spin_unlock(&priv->tx_queue[i]->txlock);
}
+#endif
static int gfar_alloc_tx_queues(struct gfar_private *priv)
{