summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorVivien Didelot2017-07-18 22:23:56 +0200
committerDavid S. Miller2017-07-20 01:28:17 +0200
commite7d53ad3239de636ea478fc003d3652b49b8e593 (patch)
tree8d3d59ef1db41bc9e32acab88cadf9837291253c /net/dsa
parentnet/packet: remove unused PGV_FROM_VMALLOC definition. (diff)
downloadkernel-qcow2-linux-e7d53ad3239de636ea478fc003d3652b49b8e593.tar.gz
kernel-qcow2-linux-e7d53ad3239de636ea478fc003d3652b49b8e593.tar.xz
kernel-qcow2-linux-e7d53ad3239de636ea478fc003d3652b49b8e593.zip
net: dsa: unexport dsa_is_port_initialized
The dsa_is_port_initialized helper is only used by dsa_switch_resume and dsa_switch_suspend, if CONFIG_PM_SLEEP is enabled. Make it static to dsa.c. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/dsa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 416ac4ef9ba9..a55e2e4087a4 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -220,6 +220,11 @@ static int dsa_switch_rcv(struct sk_buff *skb, struct net_device *dev,
}
#ifdef CONFIG_PM_SLEEP
+static bool dsa_is_port_initialized(struct dsa_switch *ds, int p)
+{
+ return ds->enabled_port_mask & (1 << p) && ds->ports[p].netdev;
+}
+
int dsa_switch_suspend(struct dsa_switch *ds)
{
int i, ret = 0;