diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-07-18 23:23:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-20 02:28:17 +0300 |
commit | e7d53ad3239de636ea478fc003d3652b49b8e593 (patch) | |
tree | 8d3d59ef1db41bc9e32acab88cadf9837291253c /include | |
parent | 8410095730c0874eb265bbcc87e9ec0d0ff8c183 (diff) |
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 'include')
-rw-r--r-- | include/net/dsa.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index 58969b9a090c..88da272d20d0 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -256,11 +256,6 @@ static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p) return !dsa_is_cpu_port(ds, p) && !dsa_is_dsa_port(ds, p); } -static inline bool dsa_is_port_initialized(struct dsa_switch *ds, int p) -{ - return ds->enabled_port_mask & (1 << p) && ds->ports[p].netdev; -} - static inline u8 dsa_upstream_port(struct dsa_switch *ds) { struct dsa_switch_tree *dst = ds->dst; |